Description Usage Arguments Value
Convert character vectors that could be numeric, to numeric
1 2 | convert_char_to_numeric(char = NULL, threshold = 0.8,
ignore_dates = TRUE)
|
char |
character vector that looks like it's full of numbers |
threshold |
numeric proportion of non-numeric values in char |
ignore_dates |
logical should dates be returned untransformed |
if proportion of NAs < threshold
returns numeric, else returns untransformed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.