Split a character vector into individual characters? (opposite of paste or stringr::str_c)

Yes, strsplit will do it. strsplit returns a list, so you can either use unlist to coerce the string to a single character vector, or use the list index [[1]] to access first element. x <- paste(LETTERS, collapse = “”) unlist(strsplit(x, split = “”)) # [1] “A” “B” “C” “D” “E” “F” “G” “H” “I” … Read more