View source: R/get_FSdata_helpers.R
| collapse_cuts_round | R Documentation |
Base R round() uses round-half-to-even ("banker's rounding"), so
round(0.5) == 0 and round(74.5) == 74. Cut coarsening rounds
representative thresholds half up (away from zero) so that, e.g., a cluster
centroid of 74.5 maps to 75, matching the intuitive "nearest integer" rule.
collapse_cuts_round(x, digits = 0L)
x |
Numeric vector. |
digits |
Integer. Number of decimal places. |
Numeric vector rounded half away from zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.