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
Senior Data Scientist at Jobandtalent

Senior Data Scientist at Jobandtalent | AI & Data Science for Business

Related