如何在R中将数字数据转换为货币?

cav*_*peu 6 currency r rename numeric

搜索了谷歌和SO,但找不到一个好的答案.我有下表:

      Country     Value
23    Bolivia  2575.684
71     Guyana  3584.693
125  Paraguay  3878.150
49    Ecuador  5647.638
126      Peru  6825.461
38   Colombia  7752.168
151  Suriname  9376.495
25     Brazil 11346.796
7   Argentina 11610.220
171 Venezuela 12766.725
168   Uruguay 14702.505
37      Chile 15363.098
Run Code Online (Sandbox Code Playgroud)

所有价值均以美元计算 - 我想加上美元符号和逗号.因此,玻利维亚的价值应为2,575.684美元.还有,是否真的需要将行名更改为1到12?如果是这样,一个简单的方法呢?

提前致谢.

The*_*Man 5

paste('$',formatC(df$Value, big.mark=',', format = 'f'))
Run Code Online (Sandbox Code Playgroud)