check_time_data function

check_time_data

check_time_data

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

  • Maintainer: In Song Kim
  • License: GPL (>= 3)
  • Last published: 2025-03-03

Useful links