This is a helper function for finding and replacing from lexicons like the event list. The lexicons are all named lists where the name is the text to replace and the value what it should be replaced with It uses fuzzy find and replace to account for spelling errors
Arguments
- pattern
the pattern to look for
- replacement
the pattern replaceme with
- x
the target string
- fixed
whether the pattern is regex or not. Default not.
Examples
L <- tolower(stringr::str_split(HistolType(),"\\|"))