describe_na_all | R Documentation |
This function extends {describe_na}
by applying to it all
columns in a data frame using functional programming tools from the purrr
package (e.g. map
). To obtain a summary of missing
values for a single variable in a data frame use describe_na
instead. This function is a more efficient way of checking for missing
values than using describe_all
, which calculates additional
summary statistics.
describe_na_all(data, ..., digits = 4, output = c("dt", "tibble"))
data |
A data frame or tibble. |
... |
This special argument accepts any number of unquoted grouping
variable names (also present in the data source) to use for subsetting,
separated by commas, e.g. |
digits |
This determines the number of digits used for rounding of the "p_na" column in the output. |
output |
Output type for each class of variables. dt" for data.table or "tibble" for tibble. |
A tibble or data.table with the following columns in addition to any specified grouping variables:
the total number of cases
number of complete cases
the number of missing values
the proportion of total cases with missing values
Craig P. Hutton, craig.hutton@gov.bc.ca
describe
, describe_na
, describe_all
describe_na_all(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.