Learn R Programming

pesticides (version 0.1)

apple: Pesticide residue measurements for apples

Description

An abbreviated data set of appleAll data set. This data was collected by the USDA Pesticide Data Program and used to estimate the ICC for pesticides on apples.

Usage

data(apple)

Arguments

Format

A data frame with 1134 observations on the following 6 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.
sampID
Sample ID.

Source

United States Deparatment of Agriculture Pesticide Data Program.

Examples

Run this code
data(apple)
these <- apple$pesticide == apple$pesticide[1]
r     <- cor(apple$comp[these], apple$ss[these])
cor2icc(r, 10,"within")

Run the code above in your browser using DataLab