count_na | R Documentation |
This function produces a table with the overall amount of missing values in a data set (absolute and relative values).
count_na(data, percent = TRUE, col_sum = TRUE)
data |
A data frame. |
percent |
A logical value indicating whether to compute also the percentage (defaults to TRUE). |
col_sum |
A logical value indicating whether the column sums should be returned. |
A tibble.
d <- mtcars
d[4,3] <- NA # Create missing values to illustrate function
count_na(d, percent = FALSE)
count_na(d, col_sum = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.