Guest User

Untitled

a guest
Apr 27th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. tf1 <- tbl_df(data.frame(row= c(1:5), body=c("tt t ttt j ss oe", "kpw eero", "pow eir sap r", "s", "oe")))
  2.  
  3. n_words freq
  4. 1 0 0
  5. 2 1 2
  6. 3 2 1
  7. 4 3 0
  8. 5 4 1
  9. 6 5 0
  10. 7 6 1
  11.  
  12. ###NOT WORK
  13. tf1 %>%
  14. wordcount(body,sep=" ", count.function=sum)
Add Comment
Please, Sign In to add comment