var | R Documentation |
Variance method for objects of class pf
Variance method for pf
object
var(x, ...) ## S3 method for class 'pf' var(x, by_locus = FALSE, ...)
x |
Object of class |
... |
other arguments that may p |
by_locus |
If |
Either a vector of variances, one for each locus, or the sum of the locus variances. The variances are the variances of the number of alleles observed at each locus.
mean.pf
freqs <- read_allele_freqs(system.file("extdata","FBI_extended_Cauc.csv", package = "numberofalleles")) p <- pr_total_number_of_distinct_alleles(contributors = c("U1","U2"), freqs = freqs) mean(p) var(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.