Learn R Programming

dint (version 2.1.4)

c.date_xx: Concatenate date_xx Objects

Description

Concatenate date_xx Objects

Usage

# S3 method for date_xx
c(...)

Value

a vector of the same date_xx subclass as the first element of ...

Arguments

...

date_yq, date_ym, date_yw or date_y vectors. All inputs must be of the same type (or its unclassed integer equivalent) or faulty output is to be expected

Examples

Run this code

c(date_yq(2000, 1:2), date_yq(2000, 3:3))

# raises an error
try(c(date_yq(2000, 1:2), date_ym(2000, 1:12)))

Run the code above in your browser using DataLab