Tidy indicators have observations that are unique. They must have on of the three types of values: an actual, an estimated or a missing value.

is_unique_observations(indicator)

Arguments

indicator

An indicator table to test.

Value

TRUE if the test is met, otherwise FALSE.

Details

Approximation and other filling techniques require unique observations.

Examples

{ test_indicator <- data.frame ( geo = c("DE", "DE", "CH", "CH"), value = 1:4, time = as.Date(paste0(2020:2021, "-01-01")), estimate = rep("actual", 4) ) is_unique_observations(test_indicator) }
#> [1] TRUE