remove_empty_at: Remove rows empty only at specified columns

View source: R/utils.R

remove_empty_atR Documentation

Remove rows empty only at specified columns

Description

Drop rows that are completely empty at specified variables. Note tidyr::drop_na() have a similar usage, but it drops rows containing any missing values (so only complete observations are retained), not all missings. remove_empty_at() drops only those rows that have no non-missing data at the variables specified in vars.

Usage

remove_empty_at(.data, vars)

Arguments

.data

tibble or data.frame

vars

variables to check for empty values, supports tidyselect syntax

Value

tibble or data.frame without observations with all vars empty

Examples

airquality %>% remove_empty_at(c(Ozone, Solar.R))


scholaempirica/reschola documentation built on June 17, 2022, 9:19 a.m.