
Last chance! 50% off unlimited learning
Sale ends in
length( grep( ... ) )
. See
examples for usage.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