grepl {set} | R Documentation |
Grepl for vectors
Description
Grepl for vectors
Usage
grepl_or(x, patterns)
grepl_and(x, patterns)
grepl_not_and(x, patterns)
grepl_not_or(x, patterns)
Arguments
x |
vectors with one or more characters |
patterns |
vectors with one or more characters |
Value
vectors
Examples
x=c('a12','a','b')
patterns=c('b','1')
grepl_or(x,patterns)
x=c('a12','a1','b')
patterns=c('a','1')
grepl_and(x,patterns)
x=c('a12','a','b')
patterns=c('a','1')
grepl_not_and(x,patterns)
x=c('a12','a','b')
patterns=c('a','1')
grepl_not_or(x,patterns)
[Package set version 1.2 Index]