nathaneastwood / poorman

A poor man's dependency free grammar of data manipulation
https://nathaneastwood.github.io/poorman/
Other
338 stars 15 forks source link

pivot_wider: improve speed #115

Closed etiennebacher closed 2 years ago

etiennebacher commented 2 years ago

Identical to https://github.com/easystats/datawizard/pull/251. If you want to run the benchmarks, just don't forget to replace:

all <- tibble::as_tibble(data.table::rbindlist(all_df))

by:

all <- data.table::rbindlist(all_df)

(and of course to change the function name)