which.char | R Documentation |
finds the index of the character in subject (length 1 character vector) matching nchar = 1 single character query eg which.char('a', 'cat') = 2
if query has more than one char (or has length>1) then will return indices matching <any one> of the characters in any element of query
which.char(subject, query)
subject |
length 1 character vector |
query |
length 1, nchar 1 character |
indices in subject that query appears
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.