powered by
length( grep( ... ) )
lg(pattern, x, perl = TRUE, ...)
grep
pattern
re_exists
x <- c("apple", "banana", "cherry") if( lg( "^ap", x ) > 0 ) { print( "regular expression '^ap' found in 'x'" ) }
Run the code above in your browser using DataLab