check_time_data: check_time_data

View source: R/data_preprocessing.R

check_time_dataR Documentation

check_time_data

Description

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

Usage

check_time_data(data, time.id)

Arguments

data

data.frame object.

time.id

string specifying the time id variable.

Details

enforces the requirements for time data, with some reasonable defaults

Value

data.frame object with the data. If function throws error, nothing is returned.


PanelMatch documentation built on June 22, 2024, 10:32 a.m.