Description Usage Arguments Examples
View source: R/numberswithcommas.R
Turn a number with commas, which R views as a string, into a numeric class number. Will also remove dollar signs.
1 | number_with_commas(mynumstring)
|
mynumstring |
- one or more character strings such as "3,650" |
1 2 3 | vect <- c("3,567", "465", "$4,000,654")
number_with_commas(vect)
# [1] 3567 465 4000654
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.