interval: 'interval' vector

View source: R/interval.r

intervalR Documentation

interval vector

Description

This represents an interval from the UK Government intervals ontology.

Usage

interval(uri)

is_interval(x)

Arguments

uri

A character vector of URIs

x

An interval

Details

is_interval returns TRUE if x is an interval and FALSE otherwise.

Value

An S3 vector of class ldf_interval.

Examples

year <- interval("http://reference.data.gov.uk/id/year/2020")
is_interval(year)
month <- 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")
gov_year <- interval("http://reference.data.gov.uk/id/government-year/2019-2020")

Swirrl/linked-data-frames documentation built on Sept. 14, 2022, 6:15 p.m.