Compute the proportion of typed elements
The generic function propTyped
is devoted to investigating the
structure of missing data in adegenet objects.
## S4 method for signature 'genind' propTyped(x, by=c("ind","loc","both")) ## S4 method for signature 'genpop' propTyped(x, by=c("pop","loc","both"))
When by
is set to "both", the result is a matrix of binary data
with entities in rows (individuals or populations) and markers in
columns. The values of the matrix are 1 for typed data, and 0 for NA.
A vector of proportion (when by
equals "ind", "pop", or
"loc"), or a matrix of binary data (when by
equals "both")
Thibaut Jombart t.jombart@imperial.ac.uk
## Not run: data(nancycats) propTyped(nancycats,by="loc") propTyped(genind2genpop(nancycats),by="both") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.