Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从数据框中获取按频率排序的列表。
data <- read.csv('ads.csv') write.table(summary(data$Publication.Name), quote = FALSE, sep = ",")
我不确定 summary() 真的是获得频率的最佳方法,我愿意接受更好的方法。我怎样才能按最频繁的顺序排序?
table例如,我会使用
table
yourdata <- sample(1:10,100,replace=T) x <- sort(table(yourdata),decreasing=T) write.csv(x,"mytable.csv",quote=F)