mat_remo_cols_1val: Remove columns with only one value

mat_show_cols_1valR Documentation

Remove columns with only one value

Description

Remove columns with only one value

Usage

mat_show_cols_1val(df, nval_max = 1, wide = TRUE, show_na = TRUE)

mat_remo_cols_1val(df, ...)

Arguments

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

Examples

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)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.