Giter Site home page Giter Site logo

dealing with NAs about inops HOT 6 OPEN

moodymudskipper avatar moodymudskipper commented on June 2, 2024
dealing with NAs

from inops.

Comments (6)

karoliskoncevicius avatar karoliskoncevicius commented on June 2, 2024

hmm to me it looks a bit too complicated.

If NAs are not desirable we can actually switch that particular behaviour to match %in% instead of ==. But then the inconsistency with [== will still remain.

Another alternative is to provide slightly different operator syntax for dealing with NAs differently. Maybe capital letters %IN{}%, like a "strict" %in{}% But not sure if it's intuitive.

from inops.

moodymudskipper avatar moodymudskipper commented on June 2, 2024

I think I'd rather not multiply by two our whole set of operators, I miss these functions in a CRAN package, but this might not be the place for them.

from inops.

karoliskoncevicius avatar karoliskoncevicius commented on June 2, 2024

Yup, agreed. What is your opinion about the other option - breaking consistency with == just for NA values?

from inops.

moodymudskipper avatar moodymudskipper commented on June 2, 2024

I'm not sure about it, it's easy to remove NAs or transform them, if they're gone by default you won't get them back.

unrelated FYI : rstudio/rstudio#5767

from inops.

moodymudskipper avatar moodymudskipper commented on June 2, 2024

I don't completely dislike the capital letter idea though! We can think about it as we use the package.

from inops.

karoliskoncevicius avatar karoliskoncevicius commented on June 2, 2024

Yup I agree about not getting NA values back if we get rid of it. Very good point.

About rstudio issue - great catch. I do not use R-studio, so do not have this particular problem. But it would be cumbersome for potential users of the package.

from inops.

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.