Closed ben519 closed 7 years ago
Example
dts <- as.Date(c("2014-2-1", "2015-1-1", "2015-7-1")) date_factor(dts, type="yearquarter", fullyears=FALSE) [1] 2014 Q1 2015 Q1 <NA> Levels: 2014 Q1 < 2014 Q2 < 2014 Q3 < 2014 Q4 < 2015 Q1 < 2015 Q2
Example