fast-grouping-ordering {collapse}R Documentation

Fast Grouping and Ordering

Description

collapse provides the following functions to efficiently group and order data:

Table of Functions

Function / S3 Generic Methods Description
radixorder(v) No methods, for data frames and vectors Radix-based ordering + grouping information
roworder(v) No methods, for data frames incl. pdata.frame Row sorting/reordering
group No methods, for data frames and vectors Hash-based grouping + grouping information
GRP default, GRP, factor, qG, grouped_df, pseries, pdata.frame Fast grouping and a flexible grouping object
fgroup_by No methods, for data frames Fast grouped data frame
fmatch No methods, for vectors and data frames Fast matching
funique, fnunique, fduplicated, any_duplicated default, data.frame, sf, pseries, pdata.frame, list Fast (number of) unique values/rows
fcount(v) Internal generic, supports vectors, matrices, data.frames, lists, grouped_df and pdata.frame Fast group counts
qF No methods, for vectors Quick factor generation
qG No methods, for vectors Quick grouping of vectors and a 'factor-light' class
fdroplevels factor, data.frame, list Fast removal of unused factor levels
finteraction No methods, for data frames and vectors Fast interactions
groupid No methods, for vectors Run-length type group-id
seqid No methods, for integer vectors Run-length type integer sequence-id
timeid No methods, for integer or double vectors Integer-id from time/date sequences

See Also

Collapse Overview, Data Frame Manipulation, Time Series and Panel Series


[Package collapse version 2.0.13 Index]