Description Usage Arguments Value Examples
View source: R/split_numeric.R
Takes a character vector of numbers with commas and returns a numeric vector
1 | split_numeric(x, split_char = ",")
|
x |
A character vector |
split_char |
The character to split by, as some regions use periods instead of commas (defaults to ",") |
A numeric vector
1 2 3 4 5 | comma_vec <- c("100,000", "250,000", "1,250", "4,242.42")
split_numeric(comma_vec)
period_vec <- c("100.000", "250.000", "1.250", "4.242,42")
split_numeric(period_vec, split_char = ".")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.