table_format: Identify if a dataframe has a long or a wide format
Description
A dataset is either in the wide format or in the long format (link).
This function identifies the format of a dataframe with respect to a subject ID.
If a dataframe has some wide and long columns, it is considered "mixed".