View source: R/model_next_step.R
get_vector_from_str | R Documentation |
get a numeric vector from string (e.g. '1,2,3')
get_vector_from_str(string, sep = ",", zero = TRUE)
string |
a string containing separated by a separator |
sep |
a string representing the separator |
zero |
a boolean defining whether the output vector must contain a zero |
Get a numeric vector from string containing numbers separated by a separator (e.g. '1,2,3').
numeric vector from the string
get_vector_from_str('1,2,3') get_vector_from_str('0.1') get_vector_from_str('1;2;3',sep=';')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.