Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Add ``season`` as an option for the unit argument ``floor_date`` #535

kendonB opened this issue Apr 15, 2017 · 1 comment


Copy link

@kendonB kendonB commented Apr 15, 2017

Would work like:

floor_date(as_date("2014-01-01"), unit = "season")
#> [1] "2013-12-01"
Copy link
Contributor Author

@kendonB kendonB commented Apr 15, 2017

A workaround:

date <- today()
floor_date(floor_date(date, "month") + months(1), unit = "quarter") - months(1)
#> [1] "2017-03-01"
@vspinu vspinu closed this in 83ae7ea May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.