Learn R Programming

pesticides (version 0.1)

peach: Pesticide residue measurements for peaches

Description

Pesticide residues for peaches from the USDA Pesticide Data Program.

Usage

data(peach)

Arguments

Format

A data frame with 4272 observations on the following 13 variables.
pesticide
The pesticide measured.
comp
Measured composite residue.
ss
Measured single item residue.
lod
Minimum level of detection.
items
Number of items per composite.
state
State collected.
origin
Origin of the produce.
year
Year.
month
Month.
day
Day.
site
Site.
lab
Lab that completed measurements.
variety
Peach variety.

Source

United States Deparatment of Agriculture Pesticide Data Program.

Details

When the number of items for a composite was listed as zero, it was replaced with the average items per composite from the rest of the data set.

Examples

Run this code
data(peach)
these <- peach$pesticide == peach$pesticide[1]
r     <- cor(peach$comp[these], peach$ss[these])
n     <- mean(peach$items[these])
cor2icc(r, n, "not")

Run the code above in your browser using DataLab