Skip to contents

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

Usage

# S4 method for class 'timeDate'
names(x)
# S4 method for class '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] [2026-01-01] [2026-02-01] [2026-03-01] [2026-04-01] [2026-05-01]
#>  [6] [2026-06-01] [2026-07-01] [2026-08-01] [2026-09-01] [2026-10-01]
#> [11] [2026-11-01] [2026-12-01]
names(td) <- LETTERS[seq_along(td)]
td
#> GMT
#>            A            B            C            D            E            F 
#> [2026-01-01] [2026-02-01] [2026-03-01] [2026-04-01] [2026-05-01] [2026-06-01] 
#>            G            H            I            J            K            L 
#> [2026-07-01] [2026-08-01] [2026-09-01] [2026-10-01] [2026-11-01] [2026-12-01]