I have a list of 3, named listWords:
$ : chr [1:6] "Maintenance" "repair" "installation" "activities" ...
$ : chr [1:19] "Manufacture" "specific" "equipment" "energy" ...
$ : chr [1:14] "Manufacture" "discharge" "lamps" "pressure" ...
I have another list, named wordsCP (for example)
$ : chr [1:3] "Cauliflowers" "and" "broccoli"
$ : chr "Lettuce"
and I would like to search the items in words CP that would contain at least 2 or 3 words from the listWords. How I can do that?
Indeed as a results, I should have a row number for both lists and then get that words in row 1 of listWords can be found in rows x, y or z of wordsCP.