remove_missing: Convenience function to remove missing values from a...

Description Usage Arguments

View source: R/utilities.r

Description

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

1
remove_missing(df, na.rm = FALSE, vars = names(df), name = "", finite = FALSE)

Arguments

df

data.frame

na.rm

If true, will suppress warning message.

vars

Character vector of variables to check for missings in

name

Optional function name to improve error message.

finite

If 'TRUE', will also remove non-finite values.


jtlandis/ggsidebar documentation built on Nov. 24, 2020, 7:22 p.m.