remove_na | R Documentation |
Return a new dataframe keeping only the variables with enough information. The user may define a threshold for what is “enough information” (either by a raw number or a proportion).
remove_na(data, which = c("ind", "var"), prop_min = NULL, n_min = NULL)
data |
a dataframe. |
which |
either |
prop_min |
a proportion between 0 and 1. An individual or a variable must have
at least a proportion |
n_min |
an integer. An individual or a variable must have at least
|
A dataframe purged from the cases or variables having too many missing values.
If both n_min
and prop_min
are supplied, only
n_min
will be used.
Frédéric Santos, frederic.santos@u-bordeaux.fr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.