Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using dcast is simpler so you may consider mentioning that, for example below ```r > data.table(iris)[, unlist(lapply(.SD, function(x) c(max=max(x), min=min(x)))), .SDcols = c("Petal.Length", "Petal.Width") ] Petal.Length.max Petal.Length.min Petal.Width.max Petal.Width.min 6.9 1.0 2.5 0.1 > dcast(data.table(iris), . ~ ., list(max,min), value.var = c("Petal.Length", "Petal.Width")) Key: <.> . Petal.Length_max Petal.Width_max Petal.Length_min Petal.Width_min <char> <num> <num> <num> <num> 1: . 6.9 2.5 1 0.1 ```
- Loading branch information