Methods for 'is.na'
stats-na-fail.Rd
is.na
methods for "timeDate"
objects.
Examples
# Create a timeCalendar sequence
(td <- timeCalendar())
#> GMT
#> [1] [2023-01-01] [2023-02-01] [2023-03-01] [2023-04-01] [2023-05-01]
#> [6] [2023-06-01] [2023-07-01] [2023-08-01] [2023-09-01] [2023-10-01]
#> [11] [2023-11-01] [2023-12-01]
is.na(td)
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
# insert NA's
is.na(td) <- 2:3
td
#> GMT
#> [1] [2023-01-01] [NA] [NA] [2023-04-01] [2023-05-01]
#> [6] [2023-06-01] [2023-07-01] [2023-08-01] [2023-09-01] [2023-10-01]
#> [11] [2023-11-01] [2023-12-01]
# test of NA's
is.na(td)
#> [1] FALSE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE