validate.names: Name validation (## )Helper function not intended to be called by the user)
Description
Helper function, checks if the names given by the user match to the names in the dataset. If not, automatic recognition is attempted when automatic=TRUE.
Value
a vector with valid names
Arguments
usernames
vector of strings
datanames
vector of strings
recognisednames
vector of strings, values for automatic recognition
verbose
logical, whether to print warning messages
automatic
a boolean indicating whether to attempt automatic name recognition when some colum names are missing or wrong (defaults to TRUE)