After running compress, this function creates a dataset where units are merged.
merge_units(compression, n_units = NULL, percent = NULL, parts = FALSE)
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)