consumption: Per capita US Food Consumption 1980-2005

Description Usage Format Details Source Examples

Description

This data frame contains infromation on the per-capita consumption of food in the United States, between 1980 and 2005. The data is taken from the Statistical Abstract of the Unites States.

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Usage

1

Format

A data frame with 42 observations on the following 4 variables.

Food

a factor with levels Caloric sweeteners, Dairy products, Eggs, Fish and Shellfist, Flour and cereal products, Poultry, Red Meat

Units

a factor with levels Number, Pounds

Year

a numeric vector

Amount

a numeric vector

Details

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Source

http://www.census.gov/compendia/statab/cats/health_nutrition/food_consumption_and_nutrition.html

Examples

1
2
3
4
5
6
7
8
data(consumption)
library(lattice)
dotplot(
  Amount ~ Year | Food,
  data=consumption,
  aspect="xy",
  scales=list(relation="sliced", cex=.4)
)

nutshell documentation built on May 1, 2019, 10:08 p.m.