Skip to content
Snippets Groups Projects
Commit dfe60077 authored by Walmes Zeviani's avatar Walmes Zeviani
Browse files

Add dataset potatoyield (Pimentel, page 76).

parent c144924f
Branches
No related tags found
No related merge requests found
##----------------------------------------------------------------------
## Data generation.
potatoyield <- read.table("http://www.leg.ufpr.br/~walmes/data/pimentel_batatinha.txt",
header=TRUE, sep="\t")
names(potatoyield) <- c("block", "variety", "yield")
str(potatoyield)
potatoyield <- potatoyield[with(potatoyield, order(block, variety)),]
save(potatoyield, file="../data/potatoyield.RData")
##----------------------------------------------------------------------
## Examples.
require(lattice)
xyplot(yield~variety, data=potatoyield,
groups=block, type="o",
ylab=expression(Yield~(t~ha^{-1})),
xlab="Variety")
rm(list=ls())
load("../data/potatoyield.RData")
ls()
str(potatoyield)
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment