Fastest way to check if a column has more than N unique values?

后端 未结 0 1918
迷失自我
迷失自我 2021-01-30 04:27

It is very straightforward to use length(unique(x))/ dplyr::n_distinct(x)/data.table::uniqueN(x) to get the exact number of unique values

相关标签:
回答
  • 消灭零回复
提交回复
热议问题