signif or round string depend on the character length
Usage
signif_round_string(
x,
digits = 2,
format = "short",
full_large = TRUE,
full_small = FALSE
)
Arguments
- x
number
- digits
signif or round digits
- format
short or long
- full_large
keep full digits for large number
- full_small
keep full digits for small number
Value
signif or round strings
Examples
signif_round_string(1.214, 2)
#> [1] "1.2"