by.loci | R Documentation |
This is an implementation of the generic by
function which applies a function to some data for a each level of a
categorical factor.
## S3 method for class 'loci'
by(data, INDICES = data$population, FUN = NULL, ..., simplify = TRUE)
data |
an object of class |
INDICES |
a vector of the same length as the number of rows in |
FUN |
a function |
... |
(currently unused). |
simplify |
(currently unused). |
The default FUN = NULL
calculates allele frequencies for each
population in data
.
a list by default indexed by locus.
Emmanuel Paradis
by
data(jaguar)
by(jaguar)
by(na.omit(jaguar))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.