Skip to contents

Remove leading zero from numbers

Usage

remove_leading_zero(x, digits = 2, ...)

Arguments

x

vector of numbers

digits

rounding digits

...

Arguments passed to formatC

Value

vector of characters

Examples

remove_leading_zero(c(0.5,-0.2))
#> [1] ".50"  "-.20"