Strings In Depth5 / 12
Up next

grepl

words <- c("apple", "banana", "cherry")
# grepl returns TRUE where the pattern is found
print(grepl("an", words))
What you're solving

test for a pattern