Skip to content

Instantly share code, notes, and snippets.

@Keiku
Created January 26, 2017 10:53
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 Keiku/ea243c7395c0ea4f52b6d9ad09c8d4d5 to your computer and use it in GitHub Desktop.
Save Keiku/ea243c7395c0ea4f52b6d9ad09c8d4d5 to your computer and use it in GitHub Desktop.
count missing values of all columns in DataFrame.
library(mice)
library(purrr)
map_df(airquality, function(x) sum(is.na(x)))
# A tibble: 1 × 6
# Ozone Solar.R Wind Temp Month Day
# <int> <int> <int> <int> <int> <int>
# 1 37 7 0 0 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment