search for: 28.22222

Displaying 4 results from an estimated 4 matches for "28.22222".

2009 Nov 23
3
FUN argument to return a vector in aggregate function
Hi All, I am currently doing the following to compute summary statistics of aggregated data: a = aggregate(warpbreaks$breaks, warpbreaks[,-1], mean) b = aggregate(warpbreaks$breaks, warpbreaks[,-1], sum) c = aggregate(warpbreaks$breaks, warpbreaks[,-1], length) ans = cbind(a, b[,3], c[,3]) This seems unnecessarily complex to me so I tried > aggregate(warpbreaks$breaks, warpbreaks[,-1],
1998 Oct 22
1
crosstab means
I would like to obtain a crosstabulation of means(var, quantiles...) i.e. I have a data frame with Var-i, Var-j, Var-k, Var-X, var-Y I like to have the mean of Var-X for each combination of Var-i,Var-j. One solution would be: by(var-i,Var-j,mean(Var-x)) but I would like it better formatted and with mean,S.Dev,n for each cell? Does anybody have some function to do this or some ideas how to go
2005 Feb 11
2
Notes on bug reports 3229 and 3242 - as.matrix.data.fram e
> From: Gorjanc Gregor > > ! Look after character ! > > From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk] > You too have not give an reproducible example! > ! Yes, I was not able to do it from my data. But bellow is one. It is > ! a stupid one, but it works. The problem is use of as.data.frame in > ! tmp1$L <- as.data.frame(tmp$L). This looks like to produce
2005 Feb 11
2
Notes on bug reports 3229 and 3242 - as.matrix.data.frame
Hello R developers. I encountered the same problem as Uwe Ligges with as.matrix.data.frame() in bug reports 3229 and 3242 - under section not-reproducible. Example I have is: > tmp level 2100-D 1 biological_process unknown NA 2 cellular process -5.88 3 development -8.42 4 physiological process -6.55 5