Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upleap_year() not working for a new class "yearmonth" #703
Comments
|
Are you still interested in doing a PR? I think the right approach would be to eliminate |
|
Yep, happy to do a PR. A better approach would be to simplify the code and just rely on the Line 21 in 6b028a8 |
|
Oh yeah, totally |
|
Thanks @earowang! |
There's a new class "yearmonth" from the tsibble package. Its underlying class is Date.
year()works for it butleap_year()doesn't. This is due torecognize()is too strict usingall(). Can we useany()instead? I'm happy to give a pull request too. Thanks.Created on 2018-08-07 by the reprex
package (v0.2.0).