Skip to content
Prev 305506 / 398506 Next

parallel version of tapply() or table()?

Hello R-helpers. 

I've tried to recreate a parallel version of tapply() and table() using a combination of the parallel functions mclapply() and pvec() and papply(), but haven't been successful. In the end, I'm trying to get a cross tab of two vectors. I currently (can) use tapply(..., sum) and table(), and even xtabs() and ftable(), but with tens of millions of words and tens of thousands of files to loop over, it take a long time, like days. 

Does anyone know of a parallel version of tapply(), table(), xtabs(), or ftable()? Or has anyone created something that approximates a parallel version of one of these functions?

Thank you for your time and help. Earl Brown

-----
Earl K. Brown, PhD
Assistant Professor of Spanish Linguistics
Department of Modern Languages
Kansas State University