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

Subsetting does not understand drop=FALSE argument #68

Open
mschubert opened this issue Jul 8, 2020 · 0 comments
Open

Subsetting does not understand drop=FALSE argument #68

mschubert opened this issue Jul 8, 2020 · 0 comments

Comments

@mschubert
Copy link

Consider the following example:

fname = "/path/to/my.gctx"
file = rhdf5::H5Fopen(fname)
data = file&"/0/DATA/0/matrix"
data[1, 1:5] # works, but coerces the matrix to a vector
data[1, 1:5, drop=FALSE] # Error: length of index has to be equal to dimensional extension of HDF5 dataset.

This is using the current Github HEAD of rhdf5.

Shouldn't the drop argument behave the same way as when subsetting a normal matrix?

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

1 participant