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

[R-Forge #5371] Subset by non-existent 'j' does not throw error #48

Closed
joshuaulrich opened this issue Feb 26, 2015 · 0 comments
Closed
Assignees
Labels

Comments

@joshuaulrich
Copy link
Owner

Submitted by: Joshua Ulrich
Assigned to: Joshua Ulrich
R-Forge link

As reported by Pat Burns as An xts R Inferno-ism.

library(xts)
xtx <- xts(cbind(a=1:4, b=11:14, c=21:24), order=Sys.Date() + 1:4)
xtx[, c('b', 'notHere', 'a')]  # no warning/error
as.matrix(xtx)[, c('b', 'notHere', 'a')]  # error
as.zoo(xtx)[, c('b', 'notHere', 'a')]  # error
@joshuaulrich joshuaulrich self-assigned this Apr 26, 2015
@joshuaulrich joshuaulrich added this to the Release 0.9-8 milestone Apr 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant