Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. for (i in 1:nrow(words))
  2. {
  3. for(j in 1:nrow(paragraphs))
  4. {
  5. if(grepl(words[i,1],paragraphs[j,1]))
  6. {
  7. paragraphs[j,"count"]=paragraphs[j,"count"]+1
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement