numbers | R Documentation |
This data set contains sex ratios in a species of insect where the sex ratio has been observed to be highly variable. The data has been collected to see if the faction of males can be determined by the population density.
numbers
A data frame with 8 observations (rows) and 3 variables (columns).
Column name | Data type | Description | Values | |
[,1] | density | integer | The population density | (1 - 444) |
[,2] | females | integer | Number of female insects | (1 - 79) |
[,3] | males | integer | Number of male insects | (0 - 365) |
The R book
, M.J. Crawley, Wiley, 2013 (Chapter 16.5.1)
# A short summary of the variables
summary(numbers)
# Add column for the proportion of males
numbers$prop_males <- numbers$males/(numbers$males +
numbers$females)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.