Hi R-users,

I'm quite new to R and trying to learn the basics. I have a following
problem concerning the convertion of array object into data frame. I have
made following data sets

tmp1 <- rnorm(100)
tmp2 <- gl(10,2,length=100)
tmp3 <- as.data.frame(cbind(tmp1,tmp2))
tmp3.sum <- tapply(tmp3$tmp1,tmp3$tmp2,sum)
tmp3.sum <- as.data.frame(tapply(tmp1,tmp2,sum))
and I want the levels from tmp2 be shown as a column in the data.frame, not
as row name as it now does. To put it in another way, as a result, I want a
data frame with two columns: levels and the sums of those levels. Row names
can be, for example, numbers from 1 to 10.

-Lauri Nikkinen
Lahti, Finland

	[[alternative HTML version deleted]]

