[R] parallelized version of "by" and "ave"

David Winsemius dwinsemius at comcast.net
Mon Dec 24 21:06:31 CET 2012


'split' works on vectors , too.

-- 
David.

Sent from my iPhone

On Dec 24, 2012, at 10:25 AM, ivo welch <ivo.welch at gmail.com> wrote:

> Dear R experts---
> 
> Has anyone written parallel versions of "by" (i.e., mcby) and "ave"
> (i.e. mcave) ?  I did ask a question like this a year ago, and then
> the answer was no.
> 
> for those who are googling the group for the answer to this question,
> in the meantime, the poor man's version of "by" is mclapply( split(
> ds, factor ), FUN )
> 
> I don't know the poor man's version of "ave".
> 
> sincerely,  /iaw
> ----
> Ivo Welch (ivo.welch at gmail.com)
> http://www.ivo-welch.info/
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list