Last chance! 50% off unlimited learning
Sale ends in
strsplit
returns the results inside a list, which is annoying. strsplit3
shortens the process.
strsplit3(x, ...)
A string to split
Other arguments to strsplit
. The argument split
is required.
out
The output from inside the list.
# NOT RUN {
# strsplit returns the results inside a list element
out = strsplit("ABC", split="")
out
# I.e....
out[[1]]
# If this is annoying/ugly in the code, use strsplit3:
out = strsplit3("ABC", split="")
out
# }
Run the code above in your browser using DataLab