powered by
length( grep( ... ) )
lg(...)
grep
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