is_unique_observations.RdTidy 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)
| indicator | An indicator table to test. |
|---|
TRUE if the test is met, otherwise FALSE.
Approximation and other filling techniques require unique observations.
{ 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