strsplit2: String splitting shortcut

Description Usage Arguments Value Author(s) See Also Examples

View source: R/BioGeoBEARS_generics_v1.R

Description

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

Usage

1

Arguments

x

A string to split

...

Other arguments to strsplit. The argument split is required.

Value

out The output from inside the list.

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

See Also

strsplit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
test=1

# 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 strsplit2:
out = strsplit2("ABC", split="")
out

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.