powered by
ggDNAvis
Takes a vector and condenses it into a single string by joining items with ",". Reversed by string_to_vector().
","
string_to_vector()
vector_to_string(vector, sep = ",")
character. The same vector but as a comma-separated string (e.g. "1,2,3").
character
"1,2,3"
vector. A vector (e.g. c(1,2,3)) to convert to a string.
vector
c(1,2,3)
character. The character used to separate values in the string. Defaults to ",". Do not set to anything that might occur within one of the values.
vector_to_string(c(1, 2, 3, 4)) vector_to_string(c("These", "are", "some", "words")) vector_to_string(3:5, sep = ";")
Run the code above in your browser using DataLab