Created
October 1, 2019 08:10
-
-
Save dvanic/8bae70d4cf7b80ccf9408dbb4527f9a0 to your computer and use it in GitHub Desktop.
Tabulate NAs by column in R using dplyr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transaction1 %>% | |
select_if(function(x) any(is.na(x))) %>% | |
summarise_each(~sum(is.na(.))) %>% | |
t() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment