View source: R/utils_data.table.R
| dt_nunique_perfeat | R Documentation |
Number of unique values per feature
dt_nunique_perfeat(x, excludeNA = FALSE, limit = 20L, verbosity = 1L)
x |
data.table: Input data.table. |
excludeNA |
Logical: If TRUE, exclude NA values. |
limit |
Integer: Print up to this many features. Set to -1L to print all. |
verbosity |
Integer: If > 0, print output to console. |
Named integer vector of length NCOL(x) with number of unique values per column/feature, invisibly.
EDG
library(data.table)
ir <- as.data.table(iris)
dt_nunique_perfeat(ir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.