Concept Flow - grep and grepl
Input: Vector & Pattern
Call grep or grepl
Search each element for pattern
If grep: Return indices of matches
If grepl: Return TRUE/FALSE for each element
Output
The functions take a list of words and a pattern, then search each word. grep returns positions of matches, grepl returns TRUE or FALSE for each.
