Learn R Programming

fma (version 2.5)

milk: Monthly milk production per cow

Description

Average monthly milk production per cow over 14 years (January 1962 - December 1975).

Usage

milk

Arguments

Format

Time series data

References

Cryer (1986) Time series analysis, Duxbury Press: Belmont.

Examples

Run this code
par(mfrow=c(2,1))
plot(milk,xlab="Year",ylab="pounds",
    main="Monthly milk production per cow")
milk.adj <- milk/monthdays(milk)*365.25/12
plot(milk.adj,xlab="Year",ylab="pounds",
    main="Adjusted monthly milk production per cow")

Run the code above in your browser using DataLab