Giter Club home page Giter Club logo

Comments (3)

johnmyleswhite avatar johnmyleswhite commented on June 11, 2024

This would make @tshort happy I suspect. It's definitely worth adding, but I'm a little worried about how it would fit into the system -- would you always use FloatDataArray instead of DataArray when working with floats?

from dataarrays.jl.

simonster avatar simonster commented on June 11, 2024

I'm not sure, although it seems safer to use a DataArray even when working with floats. With a DataArray you could potentially have values that are NaN but not NA, and thus should contaminate the result when NAs are ignored. This wrapper wouldn't be able to express that. On the other hand such cases probably arise rarely in practice. How does R treat NaN vs. NA?

from dataarrays.jl.

tshort avatar tshort commented on June 11, 2024

In R, NA and NaN have a different bit pattern (both of which are NaN's). You could do the same in Julia.

NA's and NaN's can get mixed up if you mix operations that include both.NA + NaN could be a different answer than NaN + NA. I don't think you can avoid those issues. Anyway, I think it's rare to have conflicts between NA and NaN.

from dataarrays.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.