I have an input text
inputQ <- "What can I do ..my baby has rash all over. Suggest good rash cream"
I have a list of terms
terms <- c("diaper","cloth diaper","rash pants","rash","baby wipes","rash cream")
I wish to exact match one of the terms and return it as well I tried using for loop, but is there a better method
Result should be
rash cream
stored in matchedTerm