Compare literal bytes in the string. This is very fast, but not usually what you want for non-ASCII character sets.
Compare strings respecting standard collation rules.
The default. Uses ICU regular expressions.
Match boundaries between things.
fixed(pattern, ignore_case = FALSE) coll(pattern, ignore_case = FALSE, locale = "en", ...) regex(pattern, ignore_case = FALSE, multiline = FALSE, comments = FALSE, dotall = FALSE, ...) boundary(type = c("character", "line_break", "sentence", "word"), skip_word_none = NA, ...)
| pattern | Pattern to modify behaviour. | 
|---|---|
| ignore_case | Should case differences be ignored in the match? | 
| locale | Locale to use for comparisons. See
 | 
| ... | Other less frequently used arguments passed on to
 | 
| multiline | If  | 
| comments | If  | 
| dotall | If  | 
| type | Boundary type to detect. 
 | 
| skip_word_none | Ignore "words" that don't contain any characters
or numbers - i.e. punctuation. Default  | 
str_wrap() for breaking text to form paragraphs
stringi::stringi-search-boundaries for more detail on the
various boundaries
#> [1] TRUE TRUE#> [1] FALSE TRUE#> [1] FALSE TRUE#> [1] "I" "İ" "i"#> [1] TRUE FALSE TRUE#> [1] TRUE FALSE TRUE#> [1] FALSE TRUE TRUE#> [1] 4#> [1] "These" "are" "" "" "some" "words."#> [1] "These" "are" "some" "words"#> [[1]] #> [1] "he" "at" "in" "the" "at" #>#> [[1]] #> [1] "The" "Cat" "in" "the" "Hat" #>#> [[1]] #> [1] "a" #>#> [[1]] #> [1] "a" "b" "c" #>#> [[1]] #> character(0) #>#> [[1]] #> [1] "a\n" #>