Description Usage Format Source References Examples
Preference index in F1 and F2 crosses of two species of cichlids from Lake Victoria, Pundamilia pundamilia and P. nyererei.
1 |
A data frame with 53 observations on the following 2 variables.
genotype
a factor with levels F1
and F2
preference
a numeric vector
Haeslery, M.P. and O. Seehausen. 2005. Inheritance of female mating preference in a sympatric sibling species pair of Lake Victoria cichlids: implications for speciation. Proceedings of the Royal Society of London, Series B, Biological Sciences 272: 237-245.
http://rspb.royalsocietypublishing.org/content/272/1560/237.full.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(Cichlids)
str(Cichlids)
if (require(Hmisc)) {
summary(preference ~ genotype, Cichlids, fun = favstats)
} else {
aggregate(preference ~ genotype, Cichlids, FUN = favstats)
}
if (require(plyr)) {
ddply(Cichlids, .(genotype),
function(df)c(mean = mean(df$preference),
standard.deviation = sd(df$preference),
n = length(df$preference)))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.