View source: R/missing_summary.R
missing_summary | R Documentation |
Generates missing data summaries. Adapted from tgsify
's missingness_info
missing_summary(data, upper_limit, max_vars, include_vars, type = "both")
data |
A data.frame object for which a missing data report will be generated |
upper_limit |
A number. The right tail of the frequency distribution reported in the |
max_vars |
A number. If not specified, will report the variables with missing data. If specified, limits the list of variables reported |
include_vars |
A vector of variable names or a regular expression to select variables that match a pattern. You may drop variables by providing a regular expression preceded by |
type |
Type of output. One of |
The output is a list with the "by row" summary and the "by column" summary.
missing_summary(airquality) missing_summary(airquality, type = "complete") missing_summary(airquality, type = "row") missing_summary(airquality, type = "col") ## Include only Ozone and Solar.R variables missing_summary(airquality, type = "row", include_vars = c("Ozone", "Solar.R")) missing_summary(airquality, type = "row", include_vars = "Oz|Solar") missing_summary(airquality, type = "both", include_vars = "Oz|Solar") missing_summary(airquality, type = "row", upper_limit = 1) ## Below, the upper_limit will provide the same results missing_summary(airquality, type = "row", upper_limit = 3) ## upper_limit = 6 will not return "N+" like the above example because `airquality` has 6 total variables missing_summary(airquality, type = "row", upper_limit = 6) ## drop Ozone only missing_summary(airquality, type = "col", include_vars = "!Ozone")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.