argchrR Documentation

Index of different instances of a given char in a string

Description

Take a string str, then look for the index of the different instances of the char chr.

Usage

argchr(str, chr)

Arguments

str

a string.

chr

a char of nchar(chr) = 1.

Details

None.

Value

Return a vector of indices of the different instances of the character chr in str.

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.