is_time: Test time Column Formatting.

Description Usage Arguments Value Examples

Description

The time dimension of an indicator must be a Date, or it must be a year as an integer, or a numeric that can be coerced into an integer.

Usage

1

Arguments

time

An indicator table to test.

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.