mat_show_cols_1val | R Documentation |
Remove columns with only one value
mat_show_cols_1val(df, nval_max = 1, wide = TRUE, show_na = TRUE)
mat_remo_cols_1val(df, ...)
df |
data |
nval_max |
how many values allowed? |
wide |
logical TRUE, if nval_max > 1, show in wide format? |
show_na |
default TRUE. Should show all NA? |
... |
variables to keep |
data(quick_stats)
mat_show_cols_1val(quick_stats)
mat_show_cols_1val(quick_stats, nval_max = 2)
mat_show_cols_1val(quick_stats, nval_max = 5, show_na = FALSE)
## now remove
mat_remo_cols_1val(quick_stats)
mat_remo_cols_1val(quick_stats, geo_level)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.