Strings In Depth11 / 12
Up next

strsplit

s <- "a,b,c"
# strsplit returns a list; take the first element
parts <- strsplit(s, ",")[[1]]
print(parts)
What you're solving

split a string into pieces