View source: R/char_location.R
char_location | R Documentation |
char_location() gets the location of a character within a string
char_location(string, char)
string |
is a string or text line |
char |
is character we want to locate |
is a simple wrapper of the function 'stringr::str_locate'. Is used to generate codebook.
returns a number, which is the location before the character is found within a string
char_location('this is text', 'x')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.