Learn R Programming

ume (version 1.5.2)

remove_unknown_columns: Remove columns that only have one specific value

Description

This function removes columns that exclusively contain the value defined in 'search_term' (such as " unknown" (default)).

Usage

remove_unknown_columns(df, excl_cols = NULL, search_term = " unknown", ...)

Arguments

df

data.table that contains empty columns

excl_cols

List of column names that should not be removed, even if all values contain search_term

search_term

String that uniquely occurs in one column

...

Additional arguments passed to methods.

See Also

Other Clean data output: remove_id_columns()