drop_na_col | R Documentation |
Drops columns with NAs according to a specified criterion.
drop_na_col(df, method = "all", frac = 0.1)
df |
A dataframe |
method |
The drop criterion: * all: Drop columns with all NAs * frac: Drop columns with NAs above a threshold * any: Drop any columns with at least one NA |
frac |
The threshold (between 0 and 1 inclusive) to be used when method="frac". |
A dataframe with some columns dropped according to the supplied specification
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.