[Bioc-devel] Interoperability between DataFrame and dplyr?
lawrence.michael at gene.com
Fri Apr 24 03:02:51 CEST 2015
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.
On Thu, Apr 23, 2015 at 4:06 PM, Ryan C. Thompson <rct at thompsonclan.org>
> Hi all,
> So, dplyr is a pretty cool thing, but it currently works with data.frame
> and data.table, but not S4Vectors::DataFrame. I'd like to change that if
> possible, and I assume that this would "simply" involve writing some glue
> code. However, I'm not really sure where to start, and I expect things
> might be complicated because dplyr uses S3 and S4Vectors uses S4. Can
> anyone offer any pointers?
> Bioc-devel at r-project.org mailing list
[[alternative HTML version deleted]]
More information about the Bioc-devel