WIP: Operations for DataArray that skip NA values#354
WIP: Operations for DataArray that skip NA values#354nfoti wants to merge 2 commits intoJuliaData:masterfrom
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
DataArraysthat can skipNAvalues. 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 theNumericalExtenstionspackage.Also, since
NumericExtensionsdoesn't work withBitArraysI've had to convert thenamember to anArray{Bool,N}. I realize this isn't very efficient right now, but it's hopefully a short-term solution.