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
The default methods for first() and last() should return a zero-row
matrix if the input is a zero-length matrix. This makes them (almost)
consistent with head() and tail() in the utils package. (The only
difference is that utils::tail.matrix() adds rownames by default, and
last.default() will not.)
Also update the tests for vector inputs to check the output matches
the input, not the output of head()/tail(). This will avoid potential
test failures in the unlikely event that head()/tail() change in the
future.
See #309.
We have just recently spotted this inconsistency (with relation to
last
function) in data.table. It was now amended. It looks to be the same in xts.IMO it make sense to return
numeric(0)
fromfirst(numeric())
.xts 0.11.2
The text was updated successfully, but these errors were encountered: