Skip to contents

Check for existence of a set of columns in a dataframe

Usage

is_col_present(df, ...)

Arguments

df

a dataframe to test

...

the column names (unquoted)

Value

TRUE if the columns are all there, false otherwise

Examples

is_col_present(iris, Species, Petal.Width)
#> [1] TRUE