#rdatatable — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #rdatatable, aggregated by home.social.
-
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 -
I see the hardware is of course an important aspect.
You could also try fread from #rdatatable and see if this works better for you.
Since I have quite powerful laptop, I rarely come to the limits. But this was different in the past. I did my doctoral thesis (R package development included) in part on an #EeePC. That was fun.