标签: r formatting
假设我有
a = c("88", "haha", NA, "8,888", "2.4k")
我想将数字重新格式化为
88, NA, NA, 8888, 24000
我读了一篇关于格式化的文章,但仍然不明白如何做到这一点.. Format number in R with both comma thousands separator and specified decimals