litter | R Documentation |
A scientist working with animal breading did the following experiment: He took a random sample of six boars (male pigs), and a random sample of five swine farms. At each farm 12 sows (female pigs) were randomly picked out, and each boar was mated with two sows. The response was number of piglets from each sow.
litter
A data frame with 60 observations (rows) and 3 variables (columns).
Column name | Data type | Description | Values | |
[,1] | Size | integer | Number of piglets from the sow | (6 - 13) |
[,2] | Farm | factor | 5 different farms | (Farm1...Farm5) |
[,3] | Boar | factor | 6 male pigs | (Boar1...Boar6) |
# First 10 rows
head(litter, n = 10)
# Litter sizes for each boar
boxplot(Size ~ Boar, data = litter, col = "springgreen")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.