Function for extracting names of variables which have any NA values

get_na_vars(.data)

Arguments

.data

data to be studied

Value

returns a two-column tibble holding variable name as first column ('variable') and 'contains_na' as second column.

See also

Examples

if (FALSE) { d<-left_join(sample_cohort,sample_regdata) get_na_vars(d) }