This function looks at the different possible column names given and chooses the one present in a data.frame. If none of the column names fit or if multiple names fit the function stops with an appropriate error message. The functions returns a list with the column names existing that can be used.
validate_columns(data, columns, verbose = FALSE)
data.frame to check for columns.
List of column names to be checked if they exist.
Logical if message should be printed. Default = FALSE
Returns list of columns that are present