Learn R Programming

fastR (version 0.10.3)

bugs: Bugs

Description

This data frame contains data from an experiment to see if insects are more attracted to some colors than to others. The researchers prepared colored cards with a sticky substance so that insects that landed on them could not escape. The cards were placed in a field of oats in July. Later the researchers returned, collected the cards, and counted the number of cereal leaf beetles trapped on each card.

Arguments

Format

A data frame with 24 observations on the following 2 variables.

  • Color color of card; one of B(lue) G(reen) W(hite) Y(ellow)

  • NumTrap number of insects trapped on the card

Examples

Run this code
# NOT RUN {
data(bugs)
summary(NumTrap ~ Color, bugs, fun=favstats)

# }

Run the code above in your browser using DataLab