Learn R Programming

liver (version 1.23)

cereal: Cereal data set

Description

This dataset contains nutrition information for \(77\) breakfast cereals and includes \(16\) variables. the "rating" column is our target as a rating of the cereals (Possibly from Consumer Reports?).

Usage

data(cereal)

Arguments

Format

the cereal dataset, as a data frame, contains \(77\) rows (breakfast cereals) and \(16\) columns (variables/features). the \(16\) variables are:

  • 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 (Possibly from Consumer Reports?).

See Also

adult, risk, churn, churnTel, bank, advertising, marketing, insurance, housePrice, house

Examples

Run this code
data(cereal)
str(cereal)

Run the code above in your browser using DataLab