1% Generated by roxygen2 (4.1.1): do not edit by hand
2% Please edit documentation in R/pystr_index.R
3\name{pystr_index}
4\alias{pystr_index}
5\title{Find the lowest index of a substring.}
6\usage{
7pystr_index(str, sub, start = 1, end = nchar(str))
8}
9\arguments{
10\item{str}{A character vector.}
11
12\item{sub}{A character vector.}
13
14\item{start}{A numeric vector.}
15
16\item{end}{A numeric vector.}
17}
18\value{
19A numeric vector.
20}
21\description{
22Like \code{\link{pystr_find}} but raises an error if \code{sub} is not found.
23}
24\examples{
25pystr_index("abcxyzabc", "abc")
26pystr_index("abcxyzabc", "abc", 4)
27\dontrun{
28pystr_index("abcxyzabc", "123")
29}
30}
31\references{
32\url{https://docs.python.org/3/library/stdtypes.html#str.index}
33}
34\seealso{
35\code{\link{pystr_rindex}}
36}
37
38