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

Closed
kendonB opened this Issue Apr 15, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@kendonB
Contributor

kendonB commented Apr 15, 2017

Would work like:

floor_date(as_date("2014-01-01"), unit = "season")
#> [1] "2013-12-01"
@kendonB

This comment has been minimized.

Show comment
Hide comment
@kendonB

kendonB Apr 15, 2017

Contributor

A workaround:

date <- today()
floor_date(floor_date(date, "month") + months(1), unit = "quarter") - months(1)
#> [1] "2017-03-01"
Contributor

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