Learn R Programming

GDAdata (version 0.93)

foodnames: Nutritional value of food.

Description

Nutritional value of different foods based on standard serving sizes.

Usage

data(foodnames)

Arguments

Format

A data frame with 961 observations on the following 9 variables.
Name
name of food (not unique)
Measure
serving description
Fat.grams
grams of fat in a standard serving
Food.energy.calories
calories per serving
Carbohydrates.grams
grams of carbohydrates per serving
Protein.grams
grams of protein per serving
Cholesterol.mg
cholesterol in mg per serving
weight.grams
weight in grams of a standard serving
Saturated.fat.grams
grams of saturated fat per serving

Source

The data are used in A. Izenman (2008), Modern Multivariate Statistical Techniques, Springer and are available on the accompanying website http://astro.temple.edu/~alan/MMST/

Examples

Run this code
data(foodnames, package="GDAdata")
summary(foodnames)
library(ggplot2)
ggplot(foodnames, aes(Fat.grams, Saturated.fat.grams)) + geom_point()

Run the code above in your browser using DataLab