Drop columns based on NAs percentage in R

Selecting or discarding columns based on NAs percentage in R. Showing up several ways!

Are you developing an automated exploration tool? Here we propose some alternatives to drop columns with high percentage of NAs.

In this previous tip we talk about BaseR vs Tidy & Purrr counting NAs performance.

Not leaving the pipeflow. How much does it cost?;) It depends on the NA distribution between features and its number, but not much that a few nanoseconds in small and big datasets


Soooo what’s your choice??


Carlos Vecina
Carlos Vecina
Data Scientist & TechLead at Bankinter

Data Scientist & TechLead at Bankinter | AI & Data Science for Business

Related