str_to_vctr | R Documentation |
For the inverse, see vector_to_string
.
str_to_vctr(string)
# String to Vector test_vctr <- "c('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J')" str_to_vctr(test_vctr) test_vctr <- 'c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J")' str_to_vctr(test_vctr) test_vctr <- 'c(\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\")' str_to_vctr(test_vctr) # Vector to String vctr_to_str(LETTERS[1:5]) vctr_to_str(LETTERS[1:5], quote = "\"")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.