Displaying 2 results from an estimated 2 matches for "sum_pinc".
2008 Jul 11
3
data summerization etc...
...a set of ~70,000 records and I am trying to
compute some group averages and sum values within groups. the code example
below shows how I am trying to go about doing this
pti <-rnorm(70000,10)
fid <- rnorm(70000,100)
finc <- rnorm(70000,1000)
### compute the sums of pti within fid groups
sum_pinc <-aggregate(cbind(fid,pti),list(fid),FUN=sum)
#### compute mean finc within fid groups
tot_finc <- aggregate(cbind(fid,finc),list(fid),FUN=mean)
when I try to do it this way I get an error message telling me that enough
memory cannot be allocated ( I am using R 2.7.1 on Windows XP with 2 GB...
2008 Jul 11
1
data summarization etc...
...a set of ~70,000 records and I am trying to
compute some group averages and sum values within groups. the code example
below shows how I am trying to go about doing this
pti <-rnorm(70000,10)
fid <- rnorm(70000,100)
finc <- rnorm(70000,1000)
### compute the sums of pti within fid groups
sum_pinc <-aggregate(cbind(fid,pti),list(fid),FUN=sum)
#### compute mean finc within fid groups
tot_finc <- aggregate(cbind(fid,finc),list(fid),FUN=mean)
when I try to do it this way I get an error message telling me that enough
memory cannot be allocated ( I am using R 2.7.1 on Windows XP with 2 GB...