powered by
This function calculates the proportion of values in a vector that are NA.
propNA(x)
A vector.
This function just shorthand for mean(is.na(x)), with a shorter name for reference in the vtable or sumtable summ option.
mean(is.na(x))
vtable
sumtable
summ
x <- c(1, 1, NA, 2, 3, NA) propNA(x)
Run the code above in your browser using DataLab