inspect_na {bulkreadr} | R Documentation |
Summarize missingness in data frame columns
Description
inspect_na()
summarizes the rate of missingness in each column of a data frame. For a grouped data frame, the rate of missingness is summarized separately for each group.
Usage
inspect_na(df)
Arguments
df |
A data frame |
Details
The tibble returned contains the columns:
-
col_name, a character vector containing column names of df1.
-
cnt, an integer vector containing the number of missing values by column.
-
pcnt, the percentage of records in each columns that is missing.
Value
A tibble summarizing the count and percentage of columnwise missingness for a data frame.
Examples
library(dplyr)
# dataframe summary
inspect_na(airquality)
# grouped dataframe summary
airquality %>%
group_by(Month) %>%
inspect_na()
[Package bulkreadr version 1.1.1 Index]