-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
window function works in version 0.9-7 not working in version 0.11-2 #312
Comments
what is |
It's the year name. The workaround code seems working. Thank you! |
Update. 1995.00 means year 1995 quarter Q1. 1996.25 (1996 Q2). Those works in the old library version. .POSIXct(1995.00) is returning very weird result.
as.POSIXct("1995-01-01") is working
Also do you have plan to make 1995.00 format working for the updated version? Thanks a lot! |
Hi @annaymj. I'll investigate the prior behavior and make sure it is not broken in the new version. |
Hi @annaymj, can you please provide an example of the I can get your example to work if the index is R> x <- xts(1:12, seq(as.yearqtr(2007), by=1/4, length.out=12))
R> window(x, start=2009)
[,1]
2009 Q1 9
2009 Q2 10
2009 Q3 11
2009 Q4 12
R> ix <- seq(as.yearmon(2007), by=1/12, length.out=36)
R> head(window(xts(1:36, ix), start=2009))
[,1]
Jan 2009 25
Feb 2009 26
Mar 2009 27
Apr 2009 28
May 2009 29
Jun 2009 30
R> ix <- as.Date(ix)
R> head(window(xts(1:36, ix), start=2009)) # starts in 2007, not 2009
[,1]
2007-01-01 1
2007-02-01 2
2007-03-01 3
2007-04-01 4
2007-05-01 5
2007-06-01 6
R> packageVersion("xts")
[1] '0.9.7' |
This is getting out of hand. See #312.
The
window
function works in an older version (0.9-7), but fails the new version.Can you share an example of work around ?
Was trying to install the old version using the following command, but runs into compilation issue
The text was updated successfully, but these errors were encountered: