View source: R/remove_empty_rows.R
remove_empty_rows | R Documentation |
Analagous to 'janitor::remove_empty(..., "rows")', but allows ignoring specific variables
remove_empty_rows(data, ignore = "^(record_id|redcap)|_complete$")
data |
a dataframe |
ignore |
regex identifying variables to ignore |
dataframe
x <- data.frame(a = c(1:9, NA), b = rep(c("b", NA), 5))
remove_empty_rows(x, "a")
remove_empty_rows(x, FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.