Skip to content
Prev 7417 / 21312 Next

[Bioc-devel] Interoperability between DataFrame and dplyr?

It looks like dplyr has support for base R lists as columns in data frames:
http://cran.r-project.org/web/packages/dplyr/vignettes/data_frames.html

Hopefully that feature is flexible enough to accommodate anything that
looks sufficiently like a vector. Is love to give this a try, but I can't
find anything on what specifically needs to be implemented for a new dplyr
backend.
In theory, probably not that hard. DataFrame implements methods on
primitive and S3 generics, so even the darkest shadows of the S3 world will
dispatch correctly on those. One potential roadblock is that dplyr may
assume that all columns are base R vectors, which would obviously fail for
stuff like Rle.  Ideally, the data.frame implementation of dplyr has
restricted itself to some subset of the base R API, without diving down
into C++, except through dispatch.  But that might be too idealistic. Good
luck, I'm interested to see what you come up with.

Michael


On Thu, Apr 23, 2015 at 4:06 PM, Ryan C. Thompson <rct at thompsonclan.org>
wrote: