str_find1: str_find1

Description Usage Arguments Value See Also Examples

View source: R/rpraat.R

Description

Find string in another string (without regular expressions), returns indices of the first occurence only.

Usage

1
str_find1(string, patternNoRegex)

Arguments

string

string in which we try to find something

patternNoRegex

string we want to find, "as it is" - no regular exprressions

Value

index of the first occurence only (1 = 1st character)

See Also

str_find, str_contains, isString

Examples

1
2
str_find1("Hello, hello, hello world", "ell")   # 2
str_find1("Hello, hello, hello world", "q")     # integer(0)

rPraat documentation built on Dec. 9, 2018, 1:04 a.m.