-
Notifications
You must be signed in to change notification settings - Fork 18
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
[1,drop=TRUE] no longer returns vector from FLQuant. #43
Comments
I see where the problem comes from. From that commit if a single vector of is given, and drop=TRUE, it is taken to be used to select elements along the whole object, for example
The code doing it is at, https://github.com/flr/FLCore/blob/master/R/FLArray.R#L159 This is trying to mimic the behaviour of the array class, where you an do
which could not be done in FLQuant. The confusion only occurs when sub-setting on the first dimension, not on others
Now, I would like to preserve this new behaviour, as it got added because it was needed, but would also like to find a way for your subsetting needs to work. Are you trying to select some rows and also convert to an array with less dimensions? |
I was actually using what ever worked, so probably not a bug at all :) |
OK, if you find it too difficult to extract elements from an FLQuant into a plain array let me know and we look at it again |
Change in behaviour occurs in commit: 6704455
Starting with a simple 2D quant:
commit: 26fc70c
following commit: 6704455
The text was updated successfully, but these errors were encountered: