title: 'Contains' function
body: <p>I need to know if there are any functions available in R that allow me to check if one string contains a substring and return a boolean. I've already tried <code>str_detect</code> but that doesn't suit my need.</p>
  
  <p>For example:</p>
  
  <pre><code>string = 12345REFUND4567
  </code></pre>
  
  <p>and</p>
  
  <pre><code>substring = REFUND
  </code></pre>
  
  <p><code>contains(string,substring)</code> would ideally return <code>TRUE</code>
  since <code>12345REFUND4567</code> contains <code>REFUND</code>.</p>
  
  <p><code>contains(string,substring)</code> is just the format I'd imagine the function to take.</p>