search for: grpmeans

Displaying 3 results from an estimated 3 matches for "grpmeans".

Did you mean: grpmean
2011 Jul 16
1
Fwd: construct boxplots from data with varying column widths
From: David Winsemius <dwinsemius at comcast.net> On Jul 16, 2011, at 12:15 PM, Rory Campbell-Lange wrote: > On 16/07/11, David Winsemius (dwinsemius at comcast.net) wrote: >> >> On Jul 16, 2011, at 11:19 AM, Rory Campbell-Lange wrote: >> >>> I'm an R beginner, and I would like to construct a set of boxplots >>> showing database function runtimes.
2002 Jun 05
1
[Re: Re: Scaling on a data.frame]
...t to lose the binding to the other factors (FAC2, FAC3). > Or can i only control it via order preserving - it seems unsave. > > Something like that would be nice: > "by(d[1], FAC1) <- by(d[1], FAC1, scale)" Hey, finely this works (adapted from Prof. Ripleys suggestion): grpmeans <- tapply(d$VALUE, d$FAC1, mean, na.rm=T) d$c <- d$VALUE - grpmeans[d$FAC1] grpscale <- tapply(d$c, d$FAC1, sd, na.rm=T) d$cs <- d$c / grpscale[d$FAC1] It was funny to get 3 eligible answers but non of them worked at first go. 1) grpmeans <- tapply(d[1], FAC1, mean) d$s <-...
2002 Jun 04
2
Scaling on a data.frame
Hey, hopefully there is an easy way to solve my problem. All that i think off is lengthy and clumsy. Given a data.frame d with columns VALUE, FAC1, FAC2, FAC3. Let FAC1 be something like experiment number, so that there are exactly the same number of rows for each level of FAC1 in the data.frame. Now i would like to scale all values according to the center of its experiment. So i can apply s