1% Generated by roxygen2 (4.1.1): do not edit by hand 2% Please edit documentation in R/pystr_partition.R 3\name{pystr_partition} 4\alias{pystr_partition} 5\title{Partition a string.} 6\usage{ 7pystr_partition(str, sep) 8} 9\arguments{ 10\item{str}{A character vector.} 11 12\item{sep}{A character string.} 13} 14\value{ 15A list of character vectors. 16} 17\description{ 18Split the string at the first occurrence of \code{sep}, and return a list of character vectors containing the part 19before the separator, the separator itself, and the part after the separator. 20} 21\details{ 22If the separator is not found, return a character vector containing the string itself, followed by two empty strings. 23} 24\examples{ 25pystr_partition("onetwothreeonetwothree", "two") 26} 27\references{ 28\url{https://docs.python.org/3/library/stdtypes.html#str.partition} 29} 30\seealso{ 31\code{\link{pystr_rpartition}} 32} 33 34