Removes columns that are entirely NA from a data frame and prints their names.

remove_missing_columns(data)

Arguments

data

A data frame.

Value

A data frame with all-NA columns removed.

Examples

df <- remove_missing_columns(df)
#> Error in UseMethod("tbl_vars"): no applicable method for 'tbl_vars' applied to an object of class "function"