I am trying to count the number of words in a twitter file using the expression
system2("wc", args = "-w final/en_US/en_US.news.txt",stdout=TRUE)
I keep getting a message that
Error in system2("wc", args = "-w final/en_US/en_US.news.txt", stdout = TRUE) : '"wc"' not found
I have tried all I could. I am not able to figure out what I may be doing wrong.
Any help\direction would be appreciated.