此代码块可以正常工作:
scales::percent(c(0.1, 0.9))
#> [1] "10.0%" "90.0%"
此代码块不:
scales::percent_format(c(0.1, 0.9), accuracy = 4)
#> function (x)
#> number(x, accuracy = accuracy, scale = scale, prefix = prefix,
#> suffix = suffix, big.mark = big.mark, decimal.mark = decimal.mark,
#> trim = trim, ...)
#> <bytecode: 0x5636327990a0>
#> <environment: 0x56362dadd470>
我的percent_format accuracy
参数有什么问题?它通常可以正常工作,并且不输出功能??我希望输出是这样的:
#> [1] "10.0000%" "90.0000%"