pystr_rsplit: Right split a string.

Description Usage Arguments Details Value References See Also Examples

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)

pystr documentation built on April 15, 2017, 12:30 a.m.

Related to pystr_rsplit in pystr...