pystr_rsplit: Right split a string.

Description Usage Arguments Details Value References See Also Examples

View source: R/pystr_rsplit.R

Description

Return a list of character vectors of the words in the string, using sep as the delimiter string.

Usage

1
pystr_rsplit(str, sep = " ", maxsplit = nchar(str) - 1)

Arguments

str

A character vector.

sep

A character string.

maxsplit

A numeric vector.

Details

If maxsplit is given, at most maxsplit splits are done, the rightmost ones. If sep is not specified, any whitespace string is a separator. Except for splitting from the right, pystr_rsplit behaves like pystr_split.

Value

A list of character vectors.

References

https://docs.python.org/3/library/stdtypes.html#str.rsplit

See Also

pystr_split

Examples

1
2
pystr_rsplit("a--b--c", "--")
pystr_rsplit("a--b--c", "--", 1)

nicolewhite/pystr documentation built on May 23, 2019, 5:09 p.m.