Learn R Programming

BSDA (version 1.2.0)

Orange: Price of oranges versus size of the harvest

Description

Data for Exercise 9.61

Usage

Orange

Arguments

Format

A data frame/tibble with six observations on two variables

harvest

harvest in millions of boxes

price

average price charged by California growers for a 75-pound box of navel oranges

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code
# NOT RUN {
plot(price ~ harvest, data = Orange)
model <- lm(price ~ harvest, data = Orange)
abline(model, col = "red")
summary(model)
rm(model)

# }

Run the code above in your browser using DataLab