title: Error: String must be an atomic vector R
body: <p>I am new to R, and I am having trouble using stringr on a dataset. I am trying to subset the data by variables with the word restaurant in them against those with out. I constantly get this error message.</p>
  
  <pre><code>str_detect(matrix(expandedDataFrame[1,12:21],1,
                   ncol(expandedDataFrame[,12:21])),"Restaurants")
  Error: String must be an atomic vector
  </code></pre>