What problem does it solve?
This Skill addresses performance bottlenecks in R when dealing with large datasets and complex grouped or weighted statistical operations, offering a significantly faster alternative to packages like dplyr for specific tasks.
Core Features & Use Cases
- High-Performance Aggregation: Utilizes C/C++ backend for grouped and weighted statistics, achieving speeds 50-100x faster than dplyr.
- Panel Data Operations: Efficiently handles time-series cross-sectional data with functions for within/between transformations, lags, and differences.
- Versatile Data Handling: Works seamlessly with various R data frame types (tibbles, data.tables, xts).
- Use Case: When analyzing a large panel dataset with millions of rows and needing to compute group-wise means and standard deviations,
r-collapse can perform these operations orders of magnitude faster than traditional methods.
Quick Start
Use the r-collapse skill to compute the mean of the 'value' column grouped by 'category' in the provided data.