collapse is a C/C++ based R package for advanced data transformation that is class-agnostic and compatible with base R, dplyr, data.table, and panel data classes. It provides fast statistical functions, flexible grouping objects, and efficient in-place data manipulation with minimal memory overhead and support for multithreading.
What’s covered#
- Introduction – design philosophy and compatibility
- Fast statistical functions –
fmean(),fmedian(),fsum(),fsd(),fnth(), and more - Grouping and ordering –
GRP(),fgroup_by(),qF(),radixorder() - Fast data manipulation –
fselect(),fsubset(),fmutate(),fsummarise(),join(),pivot() - Row/column arithmetic by reference –
%cr%,%r+%,setop()