Description Usage Arguments Details Value Examples
View source: R/collate_columns.R
After compose_cells
, this function rearranges and rename attribute-columns in order to
make columns properly aligned, based on the content of the columns.
1 2 3 4 5 6 7 | 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
1 2 3 4 5 6 7 8 | d <- system.file("extdata", "marks_cells.rds", package = "tidycells", mustWork = TRUE) %>%
readRDS()
d <- numeric_values_classifier(d)
da <- analyze_cells(d)
dc <- compose_cells(da, print_attribute_overview = TRUE)
collate_columns(dc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.