Closed thoree closed 5 years ago
Thanks. The first one is a simple bug, not related to your second problem. I'll move the second example to a separate issue, so I can deal with them separately.
A tip for future issues involving Familias2ped()
:
When the allele frequencies are not relevant for the problem, you can set loci = NULL
to make the example more minimal:
library(forrel, quietly = TRUE)
library(Familias, quietly = TRUE)
persons = 'singleFemale'
ped1 = FamiliasPedigree(id = persons, dadid = NA, momid = NA, sex = 'female')
datamatrix = data.frame(locus1.1 = 8, locus1.2= 9.3)
rownames(datamatrix) = persons
Familias2ped(ped1, datamatrix, loci = NULL)
#> Error in matrix("0", nrow = nFath + nMoth, ncol = ncol(allelematrix)): non-numeric matrix extent
I had some problems:
Created on 2019-01-11 by the reprex package (v0.2.1)