This helper function makes a few simple checks to identify obvious issues with the way provided column of unit identifiers.
check_identifier(data, id_col)
Dataframe of interest.
Quoted name of identifier column.
Returns NULL. Errors if a problem is discovered.