I have a big list of terms and their frequency loaded from a text file and I converted it to a table:
myTbl = read.table("word_count.txt") # read text file
colnames(myTbl)<-c("term", "frequency")
head(myTbl, n = 10)
> head(myTbl, n = 10)
term frequency
1 de 35945
2 i 34850
3 \xe3n 19936
4 s 15348
5 cu 13722
6 la 13505
7 se 13364
8 pe 13361
9 nu 12693
10 o 11995
I should probably add a column with word rank and then plot rank against frequency, but how do I do this?