pystr_index: Find the lowest index of a substring.

Description Usage Arguments Value References See Also Examples

Description

Like pystr_find but raises an error if sub is not found.

Usage

1

Arguments

str

A character vector.

sub

A character vector.

start

A numeric vector.

end

A numeric vector.

Value

A numeric vector.

References

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

See Also

pystr_rindex

Examples

1
2
3
4
5
6
pystr_index("abcxyzabc", "abc")
pystr_index("abcxyzabc", "abc", 4)
## Not run: 
pystr_index("abcxyzabc", "123")

## End(Not run)


Search within the pystr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.