foodnames: Nutritional value of food.

Description Usage Format Source Examples

Description

Nutritional value of different foods based on standard serving sizes.

Usage

1

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

1
2
3
4
data(foodnames, package="GDAdata")
summary(foodnames)
library(ggplot2)
ggplot(foodnames, aes(Fat.grams, Saturated.fat.grams)) + geom_point()

Example output

                             Name        Measure      Fat.grams    
 BUTTER, SALTED                :  3   1 CUP  :354   Min.   :  0.0  
 BUTTER, UNSALTED              :  3   1 OZ   : 80   1st Qu.:  0.0  
 DANISH PASTRY, PLAIN, NO NUTS :  3   1 TBSP : 57   Median :  2.0  
 DEVIL'S FOOD CAKE,CHOCFRST,FMX:  3   3 OZ   : 37   Mean   : 12.5  
 ICE CREAM, VANLLA, REGULR 11% :  3   1 SLICE: 32   3rd Qu.: 10.0  
 MARGARINE, REGULR,HARD,80% FAT:  3   1 PIECE: 30   Max.   :328.0  
 (Other)                       :943   (Other):371                  
 Food.energy.calories Carbohydrates.grams Protein.grams    Cholesterol.mg   
 Min.   :   0.0       Min.   :  0.00      Min.   : 0.000   Min.   :   0.00  
 1st Qu.:  65.0       1st Qu.:  3.00      1st Qu.: 1.000   1st Qu.:   0.00  
 Median : 125.0       Median : 14.00      Median : 3.000   Median :   0.00  
 Mean   : 270.4       Mean   : 34.01      Mean   : 7.232   Mean   :  32.55  
 3rd Qu.: 230.0       3rd Qu.: 31.00      3rd Qu.: 8.000   3rd Qu.:  20.00  
 Max.   :6175.0       Max.   :783.00      Max.   :74.000   Max.   :2053.00  
                                                                            
  weight.grams    Saturated.fat.grams
 Min.   :   0.4   Min.   :  0.000    
 1st Qu.:  32.0   1st Qu.:  0.000    
 Median : 113.0   Median :  0.400    
 Mean   : 149.4   Mean   :  3.988    
 3rd Qu.: 218.0   3rd Qu.:  3.300    
 Max.   :1542.0   Max.   :119.900    
                                     

GDAdata documentation built on May 2, 2019, 5:11 a.m.

Related to foodnames in GDAdata...