如何将数据框中的列内的数字四舍五入到小数点后两位?
df 的名称是tax_data,我想要舍入的列称为rate_percent
我尝试使用:
format(round(rate_percent ,2), nsmall =2) but this didn't work.
有没有人有什么建议?
r rounding dplyr tidyverse
dplyr ×1
r ×1
rounding ×1
tidyverse ×1