After running compress, this function creates a crosswalk table. Usually it is preferred to call merge_units directly.
get_crosswalk(compression, n_units = NULL, percent = NULL, parts = FALSE)
Returns a ggplot2 plot.
Returns a data.table.
A "segcompression" object returned by compress.
Determines the number of merges by specifying the number of
units to remain in the compressed dataset.
Only n_units
or percent
must be given. (default: NULL
)
Determines the number of merges by specifying the percentage
of total segregation information retained in the compressed dataset.
Only n_units
or percent
must be given. (default: NULL
)
(default: FALSE)