remove_empty_rows: Analagous to 'janitor::remove_empty(..., "rows")', but allows...

View source: R/remove_empty_rows.R

remove_empty_rowsR Documentation

Analagous to 'janitor::remove_empty(..., "rows")', but allows ignoring specific variables

Description

Analagous to 'janitor::remove_empty(..., "rows")', but allows ignoring specific variables

Usage

remove_empty_rows(data, ignore = "^(record_id|redcap)|_complete$")

Arguments

data

a dataframe

ignore

regex identifying variables to ignore

Value

dataframe

Examples

x <- data.frame(a = c(1:9, NA), b = rep(c("b", NA), 5))
remove_empty_rows(x, "a")
remove_empty_rows(x, FALSE)

aghaynes/redcaptools documentation built on April 5, 2025, 9:28 a.m.