Count missing observations for variables contained in a dataset.
count_missing(data, vars)
data | A dataset returned by |
---|---|
vars | A character vector of the names of variables to count the number of missing observations for. If the vector is named, then the names are used as labels for the variables. |
An object of class missing_counts
inheriting from dplyr::tibble
with the following columns:
The label for each variable in vars
.
Indicates whether the data is from the external control or the trial.
An integer indicating the analyis number.
The number of missing observations.
The number of total observations.
The proportion of observations that are missing.