Learn R Programming

cladoRcpp (version 0.15.1)

strsplit3: String splitting shortcut

Description

strsplit returns the results inside a list, which is annoying. strsplit3 shortens the process.

Usage

strsplit3(x, ...)

Arguments

x

A string to split

...

Other arguments to strsplit. The argument split is required.

Value

out The output from inside the list.

See Also

strsplit

Examples

Run this code
# 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