Skip to content
Prev 7421 / 21312 Next

[Bioc-devel] Interoperability between DataFrame and dplyr?

dplyr internally converts all `data.frame` objects to its `tbl_df` class
and most dplyr methods operate on the `tbl` superclass,  see (
https://github.com/hadley/dplyr/blob/master/R/tbl-df.r,
https://github.com/hadley/dplyr/blob/master/R/tbl.r).

The most direct route would to getting DataFrame objects working be just to
just provide a method that converts the `DataFrame` objects to
`data.frame`, then call `tbl_df()` on that.

However this would copy the data multiple times, so probably the best
option would be to create a new `tbl_DF` class to handle `DataFrame`
objects directly.  You can look in the various tbl-*.r files at (
https://github.com/hadley/dplyr/blob/master/R/) to see what methods should
be implemented.

On Fri, Apr 24, 2015 at 10:16 AM, Michael Lawrence <
lawrence.michael at gene.com> wrote: