Suppose I have
a = c("88", "haha", NA, "8,888", "2.4k")
I want to reformat the numbers to
88, NA, NA, 8888, 24000
I read a post about formatting, but still do not understand how to do this.. Format number in R with both comma thousands separator and specified decimals