Skip to contents

n_valid() returns the number of vector elements that are not NA. It returns the percentage of non-NA values if out = "pct", and a tibble containing number and percentage if out = "n_pct".

pct_valid() is a wrapper around n_valid(out = "pct").

n_pct_valid() is a wrapper around n_pct_valid(out = "n_pct").

Usage

n_valid(x, out = c("n", "pct", "n_pct"), ...)

pct_valid(x, ...)

n_pct_valid(x, ...)