search for: variabale

Displaying 2 results from an estimated 2 matches for "variabale".

2007 Nov 13
2
group mean, minus each row's value
I used the following to assign each row the group average, where w is the new group average variable, x is the variabale to be averaged, and g is the nominal group indicator: w <- ave(x,g) Now I want to calculate the group average, but WITHOUT each row's value of x. Is there an easy way to do this? I'm sure I'm missing something obvious here, but for the life of me I can't figure it out. Thanks!...
2002 Apr 02
1
"Large" data set: performance issue
...ses (say, 40). with all cases the function does not return within one hour (celeron at 600mhz, 256 MB). Then I tried scan() which is almost OK. I scan() the first line for var-names, then the rest. the data-matrix get transposed and as.data.frame()'ed. the problem is converting the last 1801 variabales to "numeric"-mode. i use the following snippet: i <- 23; while( i <= totCols){ datframe[,i]<-as.numeric(datframe[,i]); i <- i + 1; } each step takes ~2 secs which makes all in all about an hour. I suppose I do something really stupid. For reading the data I use datfull&l...