Strongly typed wrappers around grepl that have the
fixed and ignore.case arguments set internally (as
well as the conflicting arguments).
Arguments
- pattern
character string containing a regular expression (or character string for
fixed = TRUEto be matched in the given character vector. Coerced by as.character to a character string if possible. If a character vector of length2or more is supplied, the first element is used with a warning. Missing values are allowed.- x
a character vector where matches are sought, or an object which can be coerced by as.character to a character vector. Long vectors are supported.
- useBytes
logical. If
TRUEthe matching is done byte-by-byte rather than character-by-character.- perl
logical. Should Perl-compatible regexps be used?
Details
*f() suffixed functions have fixed = TRUE and conflicting
arguments (perl and ignore.case) set as FALSE.
*i() suffixed functions have ignore.case = TRUE and the
conflicting fixed argument set as FALSE.
For full documentation of the wrapped functions, see the help
pages for grep.
See also
Other pattern-match-replacement-wrappers:
grep-wrappers,
grepv-wrappers,
sub-wrappers
