Coder Social home page Coder Social logo

Other types of grouping about dplyr HOT 5 CLOSED

tidyverse avatar tidyverse commented on September 27, 2024
Other types of grouping

from dplyr.

Comments (5)

hadley avatar hadley commented on September 27, 2024

Ideally these should combine elegantly, so that you can (e.g.) bootstrapping by group. Probably not possible to implement all grouping types for all data sources (e.g. random sampling in sql might be hard)

from dplyr.

piccolbo avatar piccolbo commented on September 27, 2024

plyrmr also has a recursive grouping, whereby the operations on the grouped data can be applied on each leaf, then to the results of that and so on up to the root, useful with associative and commutative operations and when the number of groups is small, which makes flat grouping hit memory limits (in the obvious implementation where each group is in memory at once, alternatives based on iterators are also possible, albeit less convenient).

from dplyr.

hadley avatar hadley commented on September 27, 2024

@piccolbo Can you provide an example? Do you mean (e.g.) that you could split the data groupwise, then bootstrap each group multiple times and fit a linear model?

from dplyr.

piccolbo avatar piccolbo commented on September 27, 2024

No, it's the same thing as a hadoop combiner but with a name that makes it possible to explain it less in terms of its implementation. I am not sure I nailed it. The model is sum() of a big collection. You can group the summands any way you see fit, sum and then apply recursively. In hadoop it is such a performance boost that it makes certain programs possible altogether, not just faster. In principle, recursive grouping should not change the semantics of the program wrt flat grouping. Bootstrapping is a separate idea and very interesting. One of http://github.com/RevolutionAnalytics/rmr2 users has implemented it on top of map reduce in R. It may be of interest http://blog.cloudera.com/blog/2013/02/how-to-resample-from-a-large-data-set-in-parallel-with-r-on-hadoop/

from dplyr.

hadley avatar hadley commented on September 27, 2024

Moved to individual issues.

from dplyr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.