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

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

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

kendonB opened this issue Apr 15, 2017 · 1 comment

Comments

@kendonB
Copy link
Contributor

kendonB commented Apr 15, 2017

Would work like:

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

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 as completed in 83ae7ea May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant