mean.pf | R Documentation |
Mean method for objects of class pf
## S3 method for class 'pf' mean(x, by_locus = FALSE, ...)
x |
Object of class |
by_locus |
If |
... |
other arguments that may p |
either a vector of means, one for each locus, or the sum of the locus means. The means are the expected number of alleles observed at each locus
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.