numbers: numbers: Sex Ratios in Insects

numbersR Documentation

numbers: Sex Ratios in Insects

Description

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.

Usage

numbers

Format

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)

Source

⁠The R book⁠, M.J. Crawley, Wiley, 2013 (Chapter 16.5.1)

Examples


# A short summary of the variables
summary(numbers)

# Add column for the proportion of males
numbers$prop_males <- numbers$males/(numbers$males +
                                       numbers$females)


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.