Learn R Programming

parttime (version 0.1.2)

includes.partial_time.partial_time: 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 partial_time
includes.partial_time(e1, e2)

Value

A logical vector indicating whether partial_time

e1 includes partial_time

e2

Arguments

e1

object to test whether includes e2

e2

object to test whether included in e1

Examples

Run this code
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)

Run the code above in your browser using DataLab