Skip to content
Prev 218956 / 398498 Next

Using plyr::dply more (memory) efficiently?

"Steve Lianoglou" <mailinglist.honeypot at gmail.com> wrote in message 
news:t2ybbdc7ed01004290812n433515b5vb15b49c170f5a353 at mail.gmail.com...
Yes, thats it.
Yes, you got it.  Rather than a data.table at the end though, just return a 
list, its faster.
Shorter vectors will still be recycled to match any longer ones.

Or just this :

summaries[, list(
    counts = sum(counts),
    width = sum(exon.width),
    cplx = # .. result of complex things
), by=symbol]


Sounds like its working,  but could you give us an idea whether it is quick 
and memory efficient ?