
Order columns: identifiers, then location, then time, then everything else
Source:R/utils.R
order_columns.RdClassifies each column by the first matching column_roles pattern and emits
the groups in role order, then all unmatched columns. Order within a group is
preserved.
Arguments
- data
A data frame.
- roles
Ordered named list of regex patterns (see
polis_config()'scolumn_roles).