R`scales :: percent_format`输出函数定义而不是答案

时间:2019-03-01 21:36:30

标签: r scale

此代码块可以正常工作:

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%"

0 个答案:

没有答案