grep_col_sort | R Documentation |
order columns of a data.frame/data.table based on the supplied order of multiple character patterns.
grep_col_sort(
patterns,
df,
all_cols = TRUE,
match_first = TRUE,
perl = TRUE,
fixed = FALSE
)
A data.frame/data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.