Re: [R] strata -- really slow performance

2009-07-12 Thread hadley wickham
> In this simple example, it took less than half a second to generate the > result. That is on a 2.93 Ghz MacBook Pro. > > > So, for your data, the code would look something like this: > > > system.time(DF.new <- do.call(rbind, >                              lapply(split(patch_summary, > patch_summ

Re: [R] strata -- really slow performance

2009-07-12 Thread Marc Schwartz
On Jul 11, 2009, at 8:42 PM, Jonathan Greenberg wrote: I'm a bit confused why the following command is taking an extrodinarily long time (> 2-3 hours) to run on an 3.06ghz iMac (brand new). I'm trying to do a stratified random sample, drawing only a single value per UniqueID from the patc

[R] strata -- really slow performance

2009-07-11 Thread Jonathan Greenberg
I'm a bit confused why the following command is taking an extrodinarily long time (> 2-3 hours) to run on an 3.06ghz iMac (brand new). I'm trying to do a stratified random sample, drawing only a single value per UniqueID from the patch_summary data frame: uniqueids <- unique(patch_summary$Uni