drop_na_cols: Drop columns in a data.frame with all NA values

View source: R/utils.R

drop_na_colsR Documentation

Drop columns in a data.frame with all NA values

Description

A wrapper with dplyr functions to drop columns with no information (all NA values)

Usage

drop_na_cols(x, unique = TRUE)

Arguments

x

data.frame

unique

logical, if TRUE (default), unique() function will be applied to the result.

Value

data.frame with dropped columns

Examples

x <- data.frame(a = c(1, 2, NA), b = c(NA, NA, NA), c = c(NA, 2, 3))
drop_na_cols(x)


olugovoy/energyRt documentation built on Nov. 21, 2024, 2:24 a.m.