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.
1 2 |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.