📌  相关文章
📜  如何在 R 中查找列唯一值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:39.508000             🧑  作者: Mango

代码示例2
dummyData = rep(c(1,2, 2, 2), 25)

table(dummyData)
# dummyData
#  1  2 
# 25 75

## or another presentation of the same data
as.data.frame(table(dummyData))
#    dummyData Freq
#  1         1   25
#  2         2   75