e_extract_numbers_from_string | R Documentation |
Extract numbers from a string
e_extract_numbers_from_string(vec)
vec |
list of strings |
numeric list
# note difference in last two items
vec <- c(NA, 1, "a", "a1a", "@%^#@0.23asdf", ")(&*.2&*", ")(&*0.2&*")
e_extract_numbers_from_string(vec)
vec <- c(NA, "1a2")
e_extract_numbers_from_string(vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.