Hi R-users,
I have a data.frame like this (modificated from
https://stat.ethz.ch/pipermail/r-help/2007-August/138124.html).
y1 - rnorm(20) + 6.8
y2 - rnorm(20) + (1:20*1.7 + 1)
y3 - rnorm(20) + (1:20*6.7 + 3.7)
y - c(y1,y2,y3)
x - rep(1:5,12)
f - gl(3,20, labels=paste(lev, 1:3, sep=))
d -
Lauri Nikkinen wrote:
Hi R-users,
I have a data.frame like this (modificated from
https://stat.ethz.ch/pipermail/r-help/2007-August/138124.html).
y1 - rnorm(20) + 6.8
y2 - rnorm(20) + (1:20*1.7 + 1)
y3 - rnorm(20) + (1:20*6.7 + 3.7)
y - c(y1,y2,y3)
x - rep(1:5,12)
f - gl(3,20,
Thanks Chuck but I would fancy the output made by tapply because the idea is
to make a barplot based on those values.
-Lauri
2007/8/8, Chuck Cleland [EMAIL PROTECTED]:
Lauri Nikkinen wrote:
Hi R-users,
I have a data.frame like this (modificated from
Lauri Nikkinen wrote:
Thanks Chuck but I would fancy the output made by tapply because the
idea is to make a barplot based on those values.
-Lauri
sum1 - summary(y ~ x + f, data = d, fun=mean,
method=cross, overall=TRUE)
df - data.frame(x = sum1$x, f = sum1$f, y = sum1$S)