I have a string vector of symptoms, possibly multiple symptoms which are separated by commas, say:
x <- c('throat dry, muscles a bit painful', 'throat is a bit painful', 'throat pain, chest tightness', 'throatpain')
I'd like to use grepl or other regex function to return TRUE if "throat pain" or any slight variation is matched. In the example vector above, the result should be FALSE TRUE TRUE TRUE.
Thanks.