mean.pf {numberofalleles} | R Documentation |
Mean method for objects of class pf
Description
Mean method for objects of class pf
Usage
## S3 method for class 'pf'
mean(x, by_locus = FALSE, ...)
Arguments
x |
Object of class |
by_locus |
If |
... |
other arguments that may p |
Value
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
Examples
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)
[Package numberofalleles version 1.0.1 Index]