Check if variable exist

var_exists(df, var)

Arguments

df

data frame to check against

var

quoted variable of interest

See also

Other utility: is_metatab(), package_check()

Examples

{
var_exists(df, "val") }
#> [1] FALSE