comma_string_to_vec | R Documentation |
Useful for passing comma-separated CLI args to an R script. - WARNING: returned vector is character type - user is responsible for type conversions
comma_string_to_vec(string)
string |
[chr] a comma-separated string, e.g. 'arg1,arg2,arg3' |
[chr] a CHARACTER vector of the comma-separated string.
comma_string_to_vec("1,2,3,4,5") # c("1", "2", "3", "4", "5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.