Learn R Programming

doBy (version 4.5-15)

milkman: Milk yield data for manually milked cows.

Description

Milk yield data for cows milked manually twice a day (morning and evening).

Usage

data(milkman)

Arguments

Format

A data frame with 161836 observations on the following 12 variables.
cowno
a numeric vector; cow identification
lactno
a numeric vector; lactation number
ampm
a numeric vector; milking time: 1: morning; 2: evening
dfc
a numeric vector; days from calving
my
a numeric vector; milk yield (kg)
fatpct
a numeric vector; fat percentage
protpct
a numeric vector; protein percentage
lactpct
a numeric vector; lactose percentage
scc
a numeric vector; somatic cell counts
race
a factor with levels RDM Holstein Jersey
ecmy
a numeric vector; energy corrected milk
cowlact
Combination of cowno and lactno; necessary because the same cow may appear more than once in the dataset (in different lactations)

Details

There are data for 222 cows. Some cows appear more than once in the dataset (in different lactations) and there are 288 different lactations.

Examples

Run this code
data(milkman)
## maybe str(milkman) ; plot(milkman) ...

Run the code above in your browser using DataLab