The datey, durationy and datey_interval versions of NA
Source: R/datey.R, R/datey_interval.R, R/durationy.R
NAs.RdThroughout the datey package, NA will cause an error when used where
a datey, durationy or datey_interval is expected.
This is because its type is logical and potentially indicates user
error. If you want an NA value with a datey system type, use one of NA_datey_, NA_durationy_
or NA_datey_interval_.
Value
Each is a scalar holding the missing-value (NA)
representation of its type: NA_datey_ is a datey, NA_durationy_ is a
durationy and NA_datey_interval_ is a datey_interval.
Examples
is_datey(NA_datey_)
#> [1] TRUE
is.na(NA_datey_)
#> [1] TRUE
is_durationy(NA_durationy_)
#> [1] TRUE
is.na(NA_durationy_)
#> [1] TRUE
is_datey_interval(NA_datey_interval_)
#> [1] TRUE