title: R: how to use random forests to predict binary outcome using string variables?
body: <p>Consider the following dataframe</p>
  
  <pre><code>outcome &lt;- c(1,0,0,1,1)
  string &lt;- c('I love pasta','hello world', '1+1 = 2','pasta madness', 'pizza madness')
  
  df = df=data.frame(outcome,string)
  
  
  &gt; df
    outcome        string
  1       1  I love pasta
  2       0   hello world
  3       0       1+1 = 2
  4       1 pasta madness
  5       1 pizza madness
  </code></pre>
  
  <p>Here I would like to use random forests to understand which words in the sentences contained in the <code>string</code> variable are <strong>strong predictors</strong> of the <code>outcome</code> variable.</p>
  
  <p>Is there a (simple) way to do that in R?</p>