2 ms·
Agreed, as an R and polars user. The fundamental advantage R holds over other languages/libraries is expressions. The ability to reference columns directly AND
by holub008 2mo ago
Agreed, as an R and polars user. The fundamental advantage R holds over other languages/libraries is expressions. The ability to reference columns directly AND interoperate with vectorized base ops in R is unfair. Of course, this super power is equally confusing to learners, fraught for production code, etc.
- rtpg 2mo agodo you have a snippet of what this looks like in R?
- latent-person 2mo agoNot OP, but here is an example using tidyverse (I leave the meaning of it to you; should be clear without any R knowledge): purchases |> group_by(country) |> filter(amount <= median(amount) * 10) |> summarize(total = sum(amount - discount))