is_unique_observations: Test Unique Observations

Description Usage Arguments Details Value Examples

View source: R/test_unique_observations.R

Description

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.

Usage

1

Arguments

indicator

An indicator table to test.

Details

Approximation and other filling techniques require unique observations.

Value

TRUE if the test is met, otherwise FALSE.

Examples

1
2
3
4
5
6
7
8
9
{
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)
}

dataobservatory-eu/indicator documentation built on Dec. 19, 2021, 8:13 p.m.