I have a dataframe with predefined words/phrases.
Example: df$term
stock
revenue
continuous improvement
and another dataframe (df2) which have one column with many rows and in every row there is a text. Example df2$sentence
I used to study at university and in my free time observe the stock prices. Additionally the revenue of every stock
Stock market is my first interest
I always try to continuous improvement
using the terms from df I would like to detect for every row the terms and have as output something like this
row_number, stock, continuous improvement, revenue
1,1,0,1
2,1,0,0
3,0,1,0
Is there any simple way to make it?