The #fcase function from #rdatatable is such a pleasure to work with.
https://rdatatable.gitlab.io/data.table/reference/fcase.html
The #fcase function from #rdatatable is such a pleasure to work with.
https://rdatatable.gitlab.io/data.table/reference/fcase.html
Exploring a parallel syntax with #RDataTable
```
data |>
_[, .(x = async(long(x))), by = .(group1, group2)] |>
collect_async()
```
Is syntax sugar for
```
data |>
_[, .(x = list(future::future(long(x)))), by = .(group1, group2)] |>
_[, x := future::value(x[[1]]), by = .(group1, group2)] |>
_[]
```
data challenge: rolling median
library(data.table)
set.seed(108)
x = rnorm(1e8)
n = 1000
frollmedian(x, n) |> system.time()
# user system elapsed
# 8.439 0.727 3.212
Look under your tree! π² π
There's a major #rstats #rdatatable release waiting! @r_data_table
A tremendous thanks to all involved and especially those contributing to some major (performance-maintaining!!) rewrites around the non-API issue.
Thanks also to the CRAN team and Luke for their patience+working with us to get it over the line.
https://cran.r-project.org/web/packages/data.table/index.html

Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins, fast add/modify/delete of columns by group using no copies at all, list columns, friendly and fast character-separated-value read/write. Offers a natural and flexible syntax, for faster development.
Switching from #rmarkdown and #rdatatable to #quarto and #polars is a bit cumbersome. I just want to compile a document with tables to pdf.
If I print a polars table, I get the data type with it. If I convert it to pandas df, I get an index. If I set_tbl_hide_column_data_types, my strings get quotes. Is there no #knitr kable equivalent in #Python /Quarto?
data.table giving bizarre results on my system when compiled with the intel compiler. This is just a simple mean by time. The the GForce version goes all wacky. Using base::mean() returns to sanity.