Rでデータフレームの同一要素カウント
衆議院議員で多い名前トップ5を棒グラフにする。
使ったリスト(使うなら自己責任で)
https://dl.dropboxusercontent.com/u/67579260/data/list.txt
dat<-read.table("D://text/R/list.txt", header=TRUE) dat_name<-dat$ふりがな名前 x<-table(dat_name) sorted<-x[order(x,decreasing=T)] top5<-sorted[1:5] barplot(top5)