Check if a set of column names are found in a data frame and return an error if not
check_names_exist(data, names)
data
a data.frame to check names against
names
the inputted column names