Concatenate dates to obtain period
p.Rd
Concatenate dates to obtain period
Examples
p("2010-01-01", "2020-01-01")
#> [1] "2010-01-01/2020-01-01"
p(20100101, 20200101)
#> [1] "2010-01-01/2020-01-01"
p(2010.1, 2020.4)
#> [1] "2010-01-01/2020-10-01"
p(,2020.4)
#> [1] "/2020-10-01"
p("2010Q1", "2020Q4")
#> [1] "2010-01-01/2020-10-01"
p(2010, 2020) # for annual period only
#> [1] "2010-01-01/2020-01-01"