top | item 44237479

(no title)

interiormut | 8 months 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

discuss

order

No comments yet.