grepE: Grep an Exact Pattern

Description Usage Arguments Examples

View source: R/grepE.R

Description

Search for an exact pattern, with no character before or after the pattern.

Usage

1
2
grepE(pattern, x, ignore.case = FALSE, perl = FALSE, value = FALSE,
  fixed = FALSE, useBytes = FALSE, invert = FALSE)

Arguments

pattern

The search term.

x

The object to search against.

...

Other standard arguments - see '?grep' for more details.

Examples

1
2
grepE(pattern = 'test', x = c('notest', 'testtwo', 'test', 'est'))
[1] 3

danjamesadams/Dantools documentation built on Aug. 24, 2019, 6:15 p.m.