title: How to match vector of strings with dataframe column in r
body: <p>I have a vector of column like following</p>
  
  <pre><code>   a = "ASDRT" "GTYHE" "AQWER" QWERT"
  </code></pre>
  
  <p>And I have a dataframe like following</p>
  
  <pre><code>      ID.           Amount
  
     SDFGH.       45
     ASDRT.        67
     AQWER.      88
     TYUIIO.        543
     QWERT.        32
  </code></pre>
  
  <p>I want to match vector values with ID column of dataframe and if there is a match it will print 1 else 0</p>
  
  <p>Desired output</p>
  
  <pre><code>      ID.         Amount.        Match
      SDFGH.       45.               0
     ASDRT.        67.               1
     AQWER.      88.                1
     TYUIIO.        543.             0
     QWERT.        32.              1
  </code></pre>
  
  <p>How can I do it in R ?</p>