Learn R Programming

searchable (version 0.3.3.1)

stri_detect_std: Use standard matching

Description

Functions for matching using standard, defaut matching

Usage

stri_detect_std(str, pattern, ..., opts_std = NULL)

stri_opts_std(case_insensitive = FALSE, ...)

Arguments

str
search target
pattern
pattern to attempt
...
supplementary arguments passed to the underlying functions, including additional settings for stri_opts_std
opts_std
list; optional arguments used by stri_*_std functions
case_insensitive
logical; enable simple case insensitive matching

stri_detect_std is equivalent to str %in% pattern and is created to provide a parallel to other search methods.

stri_opts_std

Value

  • logical indicating the matching elements in str

See Also

stri_detect

Examples

Run this code
stri_detect_std( letters[1:5], letters[1:2] )  # TRUE TRUE ...
  stri_detect_std( letters[1:5], LETTERS[1:2] )  # ALL FALSE
  stri_detect_std( letters[1:5], LETTERS[1:2], opts_std = list(case_insensitive = TRUE ) )

Run the code above in your browser using DataLab