Skip to contents

Tests what columns contain missing data

Usage

test_na(df, cols = names(df), warning = TRUE)

Arguments

df

dataframe to be tested

cols

vector of columns in df to be included, default is all

warning

boolean, if TRUE, will only warn, not stop

Value

The columns that contain NA. Raises a warning or an error if columns contain missing data