
Convenience function to remove missing values from a data.frame
Source:R/utilities.R
remove_missing.Rd
Remove all non-complete rows, with a warning if na.rm = FALSE
.
ggplot is somewhat more accommodating of missing values than R generally.
For those stats which require complete data, missing values will be
automatically removed with a warning. If na.rm = TRUE
is supplied
to the statistic, the warning will be suppressed.
Usage
remove_missing(df, na.rm = FALSE, vars = names(df), name = "", finite = FALSE)