R/utils.R
format_sprintf.Rd
Can be used to provide format functions for labels in ggpltos
format_sprintf(fmt)
sprintf formatting string. see sprintf()
sprintf()
function formatting x with sprintf
# add one leading zeroes for 1 digits numbers add_leading_zeroes <- format_sprintf("%02d") add_leading_zeroes(1:10) #> [1] "01" "02" "03" "04" "05" "06" "07" "08" "09" "10"