Doctor Database

ts_doctor_db(
  check_limits = TRUE,
  check_period = FALSE,
  check_gaps = FALSE,
  fix = FALSE,
  conn = getOption("tsdbr.conn", NULL)
)

Arguments

check_limits

A flag indicating whether to check if corrected values outside the lower and upper limits are coded as erroneous.

check_period

A flag indicating whether to check if the periods are valid.

check_gaps

A flag indicating whether to check if there are any gaps in the data given the period.

fix

A flag indicating whether to fix any problems

conn

An object of class SQLiteConnection.

Value

A flag indicating whether or not the database passed the checks (or was fixed)