1% Generated by roxygen2 (4.1.1): do not edit by hand
2% Please edit documentation in R/pystr_rsplit.R
3\name{pystr_rsplit}
4\alias{pystr_rsplit}
5\title{Right split a string.}
6\usage{
7pystr_rsplit(str, sep = " ", maxsplit = nchar(str) - 1)
8}
9\arguments{
10\item{str}{A character vector.}
11
12\item{sep}{A character string.}
13
14\item{maxsplit}{A numeric vector.}
15}
16\value{
17A list of character vectors.
18}
19\description{
20Return a list of character vectors of the words in the string, using \code{sep} as the delimiter
21string.
22}
23\details{
24If \code{maxsplit} is given, at most \code{maxsplit} splits are done, the rightmost
25ones. If \code{sep} is not specified, any whitespace string is a separator.
26Except for splitting from the right, \code{pystr_rsplit} behaves like
27\code{\link{pystr_split}}.
28}
29\examples{
30pystr_rsplit("a--b--c", "--")
31pystr_rsplit("a--b--c", "--", 1)
32}
33\references{
34\url{https://docs.python.org/3/library/stdtypes.html#str.rsplit}
35}
36\seealso{
37\code{\link{pystr_split}}
38}
39
40