powered by
Convert any date or string vector to tpr class.
as_timeperiod(x)
Object of tpr class
Date or string vector
Alexey Seleznev
See custom_period()
custom_period()
dates <- as.Date(c("2019-09-11", "2019-09-02", "2019-10-11", "2019-08-30")) dates_tpr <- as_timeperiod(dates)
Run the code above in your browser using DataLab