You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitted by: Koert Kuipers
Assigned to: Nobody R-Forge link
R 2.10.1 on Win XP
xts 0.7-5
na.locf doesnt work anymore on xts objects without DIM.
library(xts)
na.locf(zoo())
Data:
numeric(0)
Index:
integer(0)
na.locf(xts())
Error in if (dim(object)[2] > 1) { : argument is of length zero
This wouldn't be an issue if zero row selection did not strip the DIM from an object:
a = xts(1 : 3, order.by = Sys.Date() + 1 : 3)
na.locf(a[a>4])
Error in if (dim(object)[2] > 1) { : argument is of length zero
Any form of batch processing will once in a while create zero row objects. Having the DIM disappear when that happens leads to weird bugs like these in my opinion...
Best,
Koert
Followups:
Date: 2010-09-17 15:29
Sender: Jeff Ryan
Fixed in the newest svn (522)
Submitted by: Koert Kuipers
Assigned to: Nobody
R-Forge link
R 2.10.1 on Win XP
xts 0.7-5
na.locf doesnt work anymore on xts objects without DIM.
Index:
integer(0)
This wouldn't be an issue if zero row selection did not strip the DIM from an object:
Any form of batch processing will once in a while create zero row objects. Having the DIM disappear when that happens leads to weird bugs like these in my opinion...
Best,
Koert
Followups:
Date: 2010-09-17 15:29
Sender: Jeff Ryan
Fixed in the newest svn (522)
Index:
integer(0)
Index:
integer(0)
Index:
integer(0)
The text was updated successfully, but these errors were encountered: