View source: R/collate_columns.R
collate_columns | R Documentation |
After compose_cells
, this function rearranges and rename attribute-columns in order to
make columns properly aligned, based on the content of the columns.
collate_columns( composed_data, combine_threshold = 1, rest_cols = Inf, retain_other_cols = FALSE, retain_cell_address = FALSE )
composed_data |
output of |
combine_threshold |
a numerical threshold (between 0-1) for content-based collation of columns. (Default 1) |
rest_cols |
number of rest columns (beyond |
retain_other_cols |
whether to keep other intermediate (and possibly not so important) columns. (Default |
retain_cell_address |
whether to keep columns like ( |
Dependency on stringdist: If you have stringdist
installed,
the approximate string matching will be enhanced. There may be variations in outcome if you have stringdist
vs if you don't have it.
Possibility of randomness: If the attribute column is containing many distinct values, then a column representative sample will be drawn.
Hence it is always recommended to set.seed
if reproducibility is a matter of concern.
A column collated data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.