tbl_na | R Documentation |
Check the number of NAs for all columns and provide a summary view.
tbl_na(x, pivot = TRUE, drop_zeros = TRUE)
x |
Dataframe. |
pivot |
Logical whether to pivot the output to long data format. |
drop_zeros |
Logical whether to drop groups or columns with zero missing values. |
Wide or long format dataframe with the count of zeros across all the columns in the original dataset.
tibble::tibble(a = c(1, 2, NA),
b = c(NA, NA, 'Q'),
c = c(3, 2, 1)) %>%
tbl_na(pivot = TRUE,
drop_zeros = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.