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

fix the creation of the wgpigs dataset.

parent cc6be2ed
No related branches found
No related tags found
No related merge requests found
##----------------------------------------------------------------------
## Data generation.
da <- read.table("http://www.leg.ufpr.br/~walmes/data/pimentel_racoes.txt",
header=TRUE, sep="\t")
names(da) <- c("ft","wg")
str(da)
wgpigs <- read.table("http://www.leg.ufpr.br/~walmes/data/pimentel_racoes.txt",
header=TRUE, sep="\t")
names(wgpigs) <- c("ft","wg")
str(wgpigs)
save(da, file="../data/wgpigs.rda")
wgpigs <- da
save(wgpigs, file="../data/wgpigs.RData")
##----------------------------------------------------------------------
## Examples.
......@@ -17,3 +16,8 @@ require(lattice)
xyplot(wg~ft, data=wgpigs,
ylab="Weight gain (kg)",
xlab="Feeding type")
rm(list=ls())
load("../data/wgpigs.RData")
ls()
str(wgpigs)
File added
File deleted
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