This represents an interval from the UK Government intervals ontology.
interval(uri) is_interval(x)
uri | A character vector of URIs |
---|---|
x | An interval |
An S3 vector of class ldf_interval
.
is_interval
returns TRUE
if x
is an interval and FALSE
otherwise.
year <- interval("http://reference.data.gov.uk/id/year/2020") is_interval(year)#> [1] TRUEmonth <- interval("http://reference.data.gov.uk/id/month/2020-07") day <- interval("http://reference.data.gov.uk/id/day/2020-04-22") p7d <- interval("http://reference.data.gov.uk/id/gregorian-interval/2020-04-27T00:00:00/P7D")