Skip to contents

Determine whether a partial_time logical matrix is definitely TRUE

Usage

# S3 method for partial_time_logical
definitely(x, by = ncol(attr(x, "pttm_lgl")), ...)

Arguments

x

a partial_time_logical matrix for coersion

by

the resolution of assessment, a column or index

...

additional arguments unused

Value

A logical vector indicating whether the partial time comparison is possibly or definitely true provided any uncertainty represented in the partial_time inputs.

Examples


x <- as.parttime(c("", "2019", "2018-01-02"))
#> Warning: Values could not be parsed (1 of 3 (33.3%)). Examples of unique failing
#> formats:
#> 
#>     ''  
y <- as.parttime(c("2018", "2019-02", "2018-02"))

definitely(x != y)
#> [1] FALSE FALSE  TRUE
definitely(x != y, by = "year")
#> [1] FALSE FALSE FALSE