Removes rows from a data frame based on NA patterns in specified columns. By default, removes rows if ANY of the specified columns contain NA. Can optionally remove only rows where ALL specified columns are NA.
remove_NA(.data, cols, complete = TRUE, call = caller_env())A data frame with rows removed based on NA patterns
A data frame or tibble
<tidy-select> Columns to check for NA values.
If no columns are specified, returns the data unchanged.
Logical. If TRUE (default), removes rows where all of the
specified columns contain NA. If FALSE, removes only rows where at least
one of the specified columns are NA.
The execution environment of a currently running function, e.g.
caller_env(). Used for error reporting.