Skip to content

Instantly share code, notes, and snippets.

@dvanic
Created October 1, 2019 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvanic/8bae70d4cf7b80ccf9408dbb4527f9a0 to your computer and use it in GitHub Desktop.
Save dvanic/8bae70d4cf7b80ccf9408dbb4527f9a0 to your computer and use it in GitHub Desktop.
Tabulate NAs by column in R using dplyr
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