Skip to contents

Functions to get or set the names of a "timeDate" object.

Usage

# S4 method for timeDate
names(x)
# S4 method for timeDate
names(x) <- value

Arguments

x

an object of class "timeDate".

value

a character vector of up to the same length as 'x', or 'NULL'.

Examples

td <- timeCalendar()
td
#> 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]
names(td) <- LETTERS[seq_along(td)]
td
#> GMT
#>            A            B            C            D            E            F 
#> [2023-01-01] [2023-02-01] [2023-03-01] [2023-04-01] [2023-05-01] [2023-06-01] 
#>            G            H            I            J            K            L 
#> [2023-07-01] [2023-08-01] [2023-09-01] [2023-10-01] [2023-11-01] [2023-12-01]