Rounds a numeric vector to the minimum precision needed to ensure uniqueness
Author
Janina Smoła janina.smola@external.roche.com
Examples
vec <- c(0.00000000, 0.00000256, 0.00001280, 0.00006400, 0.00032000,
0.00160000, 0.00800000, 0.04000000, 0.20000000, 1.00000000)
round_to_unique_string(vec)
#> [1] "0.000000" "0.000003" "0.000013" "0.0001" "0.0003" "0.0016"
#> [7] "0.0080" "0.0400" "0.2000" "1.0000"