includes.partial_time.partial_time: Test for whether a timestamp could be included within...

View source: R/includes.R

includes.partial_time.partial_timeR Documentation

Test for whether a timestamp could be included within parttime uncertainty

Description

Test for whether a timestamp could be included within parttime uncertainty

Usage

## S3 method for class 'partial_time'
includes.partial_time(e1, e2)

Arguments

e1

object to test whether includes e2

e2

object to test whether included in e1

Value

A logical vector indicating whether partial_time e1 includes partial_time e2

Examples

x_chr <- c("2019", "2019-03-01", "2019-03",    "2018",    "",     "2018", "")
y_chr <- c("2019", "2019-03",    "2019-03-01", "2016-05", "2018", "",     "")

x <- as.parttime(x_chr)
y <- as.parttime(y_chr)

includes(x, y)


parttime documentation built on May 29, 2024, 6:25 a.m.