string2character | R Documentation |
These convenience function can be used to convert character strings into vectors of single characters and back.
c2s(x)
s2c(x)
x |
for |
Either a single character string or a vector of single characters.
Michael Hahsler
s <- sample(c("A", "C", "G", "T"), 10, replace = TRUE)
s
s2 <- c2s(s)
s2
s2c(s2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.