Learn R Programming

functClust (version 0.1.6)

first_argchr: Index of a first instance of char in a string

Description

Take a string str, then look for the position index of the first instance of the char chr.

Usage

first_argchr(str, chr)

Arguments

str

a string.

chr

a char of length(chr) = 1.

Value

Return the position index of the first chr in str.

Details

None.

See Also

argchr returns all the instances of chr in str. first_argchr returns the first instance of chr in str. delstr_begin deletes the beginning of a string. delstr_end deletes the end of a string.