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

as.period(..., units="years") does not work on intervals where one of the dates is 29th of February #230

Closed
dvse opened this issue Feb 23, 2014 · 2 comments

Comments

@dvse
Copy link

dvse commented Feb 23, 2014

The following code:

 as.period(interval(ymd("1972-02-29"),ymd("2013-11-27")),unit="years")

results in this error:

Error in while (any(start + est * per < end)) est[start + est * per <  : 
 missing value where TRUE/FALSE needed

Many thanks.

@mmparker
Copy link
Contributor

Looks like a duplicate of #202

@vspinu
Copy link
Member

vspinu commented Dec 13, 2014

Fixed in 960a434 [#284].

@vspinu vspinu closed this as completed Dec 13, 2014
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

3 participants