Make sure that time_data is a data frame, return time column index.

validate_timedata(time_data)

Arguments

time_data

User's time_data argument

Value

If no error is thrown, the index corresponding to the column holding the time data is returned. If no time_data is supplied NULL type returned.