Learn R Programming

fastR2 (version 1.2.4)

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)

trapped

number of insects trapped on the card

Examples

Run this code

data(Bugs)
favstats(trapped ~ color, data = Bugs)

Run the code above in your browser using DataLab