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

Dataset from Pimentel page 91 included.

parent e5be1287
No related branches found
No related tags found
No related merge requests found
##----------------------------------------------------------------------
## Data generation.
plowing <- read.table("http://www.leg.ufpr.br/~walmes/data/pimentel_aradura.txt",
header=TRUE, sep="\t")
names(plowing) <- c("plow", "block", "yield")
levels(plowing$plow) <- c("normal", "deep")
str(plowing)
plowing <- plowing[with(plowing, order(block, plow)),]
save(plowing, file="../data/plowing.RData")
##----------------------------------------------------------------------
## Examples.
require(lattice)
xyplot(yield~plow|block, data=plowing, type=c("p", "a"),
ylab=expression(Yield~(t~ha^{-1})),
xlab="Plowing level")
rm(list=ls())
load("../data/plowing.RData")
ls()
str(plowing)
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment