Say hello to #rdatatable 1.16.0 🎉
Many thanks to the dozens of contributors, new and old!
A quick thread on what to look out for 👀 #rstats
=> More informations about this toot | More toots from michaelchirico@fosstodon.org
Use names(.SD) in the LHS of := assignment now works!
DT[, names(.SD) := lapply(.SD, normalize), .SDcols = is.numeric]
Highly requested since 2014; turns out it was a one-line fix ✏️
=> More informations about this toot | More toots from michaelchirico@fosstodon.org
fread() automatically detects ',' as a decimal separator (you're welcome 🇪🇺 and south america!)
=> More informations about this toot | More toots from michaelchirico@fosstodon.org
fcase() supports vectors in default, making it much more flexible & matching SQL CASE WHEN ... ELSE behavior.
fcase(
type == "fruit" & full_name %in% apples,
"Apple",
type == "vegetable" & full_name %in% broccoli,
"Broccoli",
default = full_name
)
Much obliged to @davis for providing design feedback here!
=> More informations about this toot | More toots from michaelchirico@fosstodon.org
forder supports a sort of caching in many more cases -- if an index has already been computed on a table, it's reused instead of computing from scratch.
=> More informations about this toot | More toots from michaelchirico@fosstodon.org
There's really a ton more (54 items!) but I think that's the most generally-visible stuff :)
Check out the NEWS! There may be an accompanying blog post over at the raft soon too 🤓
https://cran.r-project.org/web/packages/data.table/news/news.html
https://rdatatable-community.github.io/The-Raft/
Thanks as always for your support!
=> More informations about this toot | More toots from michaelchirico@fosstodon.org This content has been proxied by September (3851b).Proxy Information
text/gemini