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

Capital Y in potatoYield.

parent af20ffe4
No related branches found
No related tags found
No related merge requests found
##----------------------------------------------------------------------
## Data generation.
potatoyield <- read.table("http://www.leg.ufpr.br/~walmes/data/pimentel_batatinha.txt",
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)
names(potatoYield) <- c("block", "variety", "yield")
str(potatoYield)
potatoyield <- potatoyield[with(potatoyield, order(block, variety)),]
potatoYield <- potatoYield[with(potatoYield, order(block, variety)),]
save(potatoyield, file="../data/potatoyield.RData")
save(potatoYield, file="../data/potatoYield.RData")
##----------------------------------------------------------------------
## Examples.
require(lattice)
xyplot(yield~variety, data=potatoyield,
xyplot(yield~variety, data=potatoYield,
groups=block, type="o",
ylab=expression(Yield~(t~ha^{-1})),
xlab="Variety")
rm(list=ls())
load("../data/potatoyield.RData")
load("../data/potatoYield.RData")
ls()
str(potatoyield)
str(potatoYield)
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment