Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
interiormut
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
interiormut
1y ago
``` library(data.table) purchases[amount <= median(amount)*10][, .(total = sum(amount - discount)), by = .(country)][order(country)] ``` - no quotes needed - no loc needed - only 1 groupby needed
2.
▲
by
interiormut
1y ago
As a long-time R user, I truly miss the elegance of `data.table` and base R in general. Today, I mostly write in Rust and Python. But R just feels elegant and purposeful. I force myself to avoid R these days though because that's the