Check data frame for mandatory variables and specify which are missing in message

lacks_msg(df, varnames)

Arguments

df

a data frame

varnames

a vector with variable names

Value

character string saying which variables are missing