Skip to contents

This function checks if the expected column names are in the dataframe. It is used at the beginning of TADA functions to ensure the input data frame is suitable (i.e. is either the full physical/chemical results profile downloaded from WQP or the TADA profile template downloaded from the EPA TADA webpage.)

Usage

TADA_CheckColumns(.data, expected_cols)

Arguments

.data

A dataframe

expected_cols

A vector of expected column names as strings