R table

table()
记录数据频数
x <- table(c(1,2,1,3,2,1)); print(x)

1 2 3

3 2 1

原文地址:https://www.cnblogs.com/impw/p/13042658.html