How can I round a date to the quarter start/end?

后端 未结 3 1961
夕颜
夕颜 2021-01-04 22:45

I need to take a vector of dates and for each date get the first day of the next quarter.

(Or rather, to round to the last day of the current quarter, find the first

3条回答
  •  北海茫月
    2021-01-04 23:43

    I know it’s an old thread but I found my way here from a recent duplicate post.

    lubridate::ceiling_date() now accepts quarters.

提交回复
热议问题