Time data should be consecutive integers: When it is not, try to convert it as best we can or throw an error. If function does not fail, returns the data as data frame object, either processed or not as appropriately
check_time_data(data, time.id)
Arguments
data: data.frame object.
time.id: string specifying the time id variable.
Returns
data.frame object with the data. If function throws error, nothing is returned.
Details
enforces the requirements for time data, with some reasonable defaults