title: delete stop words in R
body: <p>I Have a dataframe wich has this structure : </p>
  
  <pre><code>Note.Reco Review Review.clean.lower
  10 Good Products  good products
  9 Nice film      nice film
  ....         ....
  </code></pre>
  
  <p>The first column is the rank of the film, then the second column is the custmer's review then the 3rd column is the review with lowercase letters.</p>
  
  <p>I try now to delete stop words with this  :</p>
  
  <pre><code>Data_clean$Raison.Reco.clean1 &lt;- Corpus(VectorSource(Data_clean$Review.clean.lower))
  Data_clean$Review.clean.lower1 &lt;- tm_map(Data_clean$Review.clean.lower1, removeWords, stopwords("english"))
  </code></pre>
  
  <p>But R studio crashes</p>
  
  <p>Can you help me to resolve this problem please?</p>
  
  <p>Thank you</p>
  
  <p><strong>EDIT :</strong> </p>
  
  <pre><code>#clean up
  # remove grammar/punctuation
  Data_clean$Review.clean.lower &lt;- tolower(gsub('[[:punct:]0-9]', ' ', Data_clean$Review))
  
  Data_corpus &lt;- Corpus(VectorSource(Data_clean$Review.clean.lower))
  
  Data_clean &lt;- tm_map(Data_corpus,  removeWords, stopwords("french"))
  
  train &lt;- Data_clean[train.index, ]
  test &lt;- Data_clean[test.index, ]
  </code></pre>
  
  <p>So I get error when I run the 2 last instructions .</p>