Follow

While R isn't my favorite language of the ones I regularly use, I know you people adore it, so here's a fun package you should try out:

github.com/dirkschumacher/tran

If you like functional style, but want efficiency too, try out transducers, they're an amazing little tool that I'm still picking up, but they give you pipelines that don't create intermediate arrays (and composable reductions, lazy evaluation in this case, etc). Thus, they still provide clean, familiar functional syntax but with a pretty sizable performance boost!

Here's a conceptual primer on them from Clojure as well:

clojure.org/reference/transduc

I hope this proves useful to some of you! 😁

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.