Skip to contents

Checks latency of input data.

Usage

assert_data_up_to_date(
  data,
  expected_max_time_value,
  target_label = checkmate::vname(data),
  location_col_name = "geo_value",
  date_col_name = "time_value",
  overlatent_err_thresh = 0.2
)

Arguments

data

Data frame containing target data.

expected_max_time_value

Date. The most recent date for which observations are expected.

target_label

Character. Human-readable label for the target. Default is the variable name of the data object.

location_col_name

Character. Name of the location column. Default is "geo_value".

date_col_name

Character. Name of the date column. Default is "time_value".

overlatent_err_thresh

Numeric. Proportion threshold for raising error vs warning. Default 0.20.

Value

Invisible NULL. Raises warnings or errors based on the proportion of locations with excess latency.