Learn R Programming

evidence (version 0.8.10)

weightgain: weight gain in rats

Description

Rats were fed diets with different quantities of protein from either animal or plant sources. The weight gained at the end of the experiment was the response variable.

Usage

data("weightgain")

Arguments

Format

A data frame with 40 observations on the following 3 variables

source

source of protein given, a factor with levels Beef and Cereal

type

amount of protein given, a factor with levels High and Low

weightgain

weight gain in grams

Examples

Run this code
# NOT RUN {
  data("weightgain")
  with(weightgain, table(source, type))
# }

Run the code above in your browser using DataLab