Learn R Programming

aramappings (version 0.1.3)

cereal: Breakfast Cereal Data Set

Description

Nutritional information and manufacturer data for 70+ popular US breakfast cereals

Usage

cereal

Arguments

Format

A matrix containing 77 observations and 16 attributes.

name

name of cereal

manuf

manufacturer of cereal, coded into seven categories: "A" for American Home Food Products, "G" for General Mills, "K" for Kelloggs, "N" for Nabisco, "P" for Post, "Q" for Quaker Oats, and "R" for Ralston Purina

type

cold or hot

calories

calories per serving

protein

grams of protein

fat

grams of fat

sodium

milligrams of sodium

fiber

grams of dietary fiber

carbo

grams of complex carbohydrates

sugars

grams of sugars

potass

milligrams of potassium

vitamins

vitamins and minerals - 0, 25, or 100, indicating the typical percentage of FDA recommended

shelf

display shelf (1, 2, or 3, counting from the floor)

weight

weight in ounces of one serving

cups

number of cups in one serving

rating

a rating of the cereals

References

Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.

Examples

Run this code
data(cereal)
str(cereal)

Run the code above in your browser using DataLab