how do achieve the equivalent of awk '{print $1}' /tmp/data | sort | uniq -c
for a particular column in R?
Example: cat /tmp/data
alama
alama
alama
bbbb
bbbb
ccc
alama
bbbb
bbbb
awk '{print $1}' /tmp/data | sort | uniq -c
1 4 alama 4 bbbb 1 ccc
i.e. count of every item in the column.
Based on @Joshua's suggestion and my particular needs ...
s<-data.frame(table(spam[,1]))
p<-s[s$Freq>=3,]
p[order(p$Freq,decreasing=TRUE ),]