Last data update: 2014.03.03

R: Butterfat of Cows
CowsR Documentation

Butterfat of Cows

Description

Random samples of ten mature (five-year-old and older) and ten two-year-old cows were taken from each of five breeds. The average butterfat percentage of these 100 cows is stored in the variable butterfat with the type of cow stored in the variable breed and the age of the cow stored in the variable age.

Usage

Cows

Format

A data frame with 100 observations on the following 3 variables:

butterfat

average butterfat percentage

age

a factor with levels 2 years old and Mature

breed

a factor with levels Ayrshire, Canadian, Guernsey, Holstein-Friesian, and Jersey

Source

Canadian record book of purebreed diary cattle.

References

Sokal, R. R. and Rohlf, F. J. (1994) Biometry. W. H. Freeman, New York, third edition.

Examples

summary(aov(butterfat~breed+age, data = Cows))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(PASWR)
Loading required package: e1071
Loading required package: MASS
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/PASWR/Cows.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Cows
> ### Title: Butterfat of Cows
> ### Aliases: Cows
> ### Keywords: datasets
> 
> ### ** Examples
> 
> summary(aov(butterfat~breed+age, data = Cows))
            Df Sum Sq Mean Sq F value Pr(>F)    
breed        4  34.32   8.580  49.909 <2e-16 ***
age          1   0.21   0.207   1.204  0.275    
Residuals   94  16.16   0.172                   
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>