-
Notifications
You must be signed in to change notification settings - Fork 370
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
WIP: Operations for DataArray that skip NA values #354
Conversation
Very cool. Is there any way to patch NumericExtensions to handle BitArray's? |
I'm sorry for not realizing this earlier, but there's a wrinkle when using this on arrays of non-bits types, since it's possible (likely, even) that values that are NA have |
You're right that for an arbitrary |
Also, I attempted to patch |
Union types and abstract types aren't bits types, so a Non-bits arrays aren't going to be fast anyway, so using an simple but slow approach seems fine, but I'm not sure it's possible to define methods that only apply to arrays of bits types using multiple dispatch, since e.g. |
Using It's too bad there's no way to use multiple dispatch to do this though. After thinking about how I'd implement it though, what should the behavior On Thu, Aug 22, 2013 at 11:43 AM, Simon Kornblith
|
Fixed by JuliaStats/DataArrays.jl#101 |
I've implemented a few operations on
DataArrays
that can skipNA
values. This behavior can eventually be tied to a flag to turn it on or off, but for now I just wanted to get something working. I've implemented the approach outlined by @simonster in Issue #325 using theNumericalExtenstions
package.Also, since
NumericExtensions
doesn't work withBitArrays
I've had to convert thena
member to anArray{Bool,N}
. I realize this isn't very efficient right now, but it's hopefully a short-term solution.