View source: R/limpiar_na_cols.R
limpiar_na_cols | R Documentation |
Remove columns whose proportion of NAs is higher than determined threshold. Setting threshold of 0.25 asks R to remove all columns with 25% or more NA values. Can be useful when dealing with large data frames, where many columns are redundant.
limpiar_na_cols(df, threshold)
df |
The Data Frame or Tibble object |
threshold |
Threshold of non-NA entries a column must exceed to be retained. |
Data Frame or Tibble with NA-heavy columns purged
limpiar_examples
limpiar_examples %>% limpiar_na_cols(0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.