WinVector / rquery

Data Wrangling and Query Generating Operators for R. Distributed under choice of GPL-2 or GPL-3 license.
https://winvector.github.io/rquery/
Other
109 stars 15 forks source link

Wonder if a disk.frame connector is possible? #13

Closed xiaodaigh closed 4 years ago

xiaodaigh commented 4 years ago

Interesting in learning about the technical feasibility of connecting rquery to diskframe.com

JohnMount commented 4 years ago

I haven't researched it yet, but it should be feasible. rquery is designed so that the connectors/adapters are supposed to be easy to build. Do you have a preferred diskframe starting guide?

xiaodaigh commented 4 years ago

https://diskframe.com/articles/intro-disk-frame.html

If u have rquery for data.table then I think disk.frame should be possible.

It's very dense and takes some time to understand. I think the read me can benefit from some dead simple examples. Like how does mutate and filter look like in rquery. Perhaps a side by side comparison in a table?

JohnMount commented 4 years ago

My group isn't looking to pursue adding a disk.frame adaptor at this time.

To anybody who wants to write such an adaptor: I would suggest looking into rqdatatable. rqdatatable is essentially just a list of the rquery verbs, each with a direct data.table realization (so the whole package is just a side by side comparison). All one would have to do is not perform any of the data.frame to data.table casts or constructions (i.e. insist that all objects come to the methods as already disk.frame classes).

JohnMount commented 4 years ago

If you want to pursue an rquery disk.frame adapter: simpler rquery documentation is available here, and rqdatatable (which the rquery data.table adapter) has been simplified in version 1.2.4.