title: Match two columns by searching along the column; both columns in same dataframe
body: <p>I am employing RStudio. I have the following toy model:</p>
  
  <pre><code>df &lt;- data.frame("Name1" = c("JPMorgan", "BMO", "Citibank", "Barclays", "Deutsche", "Chase", "HSBC", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".","."), "Name2" = c("JPMorgan and Chase","SEFCU Union","Wells Fargo Commercial Bank","Bank of America", "Citibank LLC","Charles Schwab", "Barclays", "HSBC Holdings PLc",  "Wall Bank Holdings", "Chase Manhattan Bank", "TD Bank", "Ally Bank", "Goldman Sachs", "M&amp;T Bank", "Key Bank", "Royal Bank of Canada", "Bank of Montreal BMO", "US Bancorp", "Capital One", "BNY Mellon"), stringsAsFactors = FALSE)
  </code></pre>
  
  <p>I want to create a third column called <code>df$matched</code> wherein each entry from <code>Name1</code> searches through the whole column <code>Name2</code>, and produces an output of 1 if the string is present partially in <code>Name2</code>, and a 0 if it is not present. </p>
  
  <p>My current approach of using rowwise mutate is producing a 1:1 match.</p>
  
  <p>My desired output would be a new column with:
  1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0</p>