Coder Social home page Coder Social logo

Comments (5)

karoliskoncevicius avatar karoliskoncevicius commented on September 27, 2024

I think this is added under section about "Behaviour" ? Or do you think that is not enough?

from inops.

moodymudskipper avatar moodymudskipper commented on September 27, 2024

It is not as far as I can see, we have :

NA == 1
#> [1] NA

NA %in% 1
#> [1] FALSE

NA %in{}% 1
#> [1] NA

c(1, NA, 3) %in{}% 1:10
#> [1] TRUE   NA TRUE

where we never have NA on the rhs, I suggest :

NA == NA
#> [1] NA
NA %in% NA
#> [1] TRUE
NA %in{}% NA
#> [1] FALSE

The case of NA == NA is known to be puzzling to less experienced users, so I expect NA %in{}% NA not to be obvious to all.

from inops.

karoliskoncevicius avatar karoliskoncevicius commented on September 27, 2024

Hmm. You wrote NA %in{}% NA is FALSE - however I am getting NA %in{}% NA to be NA. I thought it's just a sub-case of NA %in{}% 1

from inops.

moodymudskipper avatar moodymudskipper commented on September 27, 2024

Sorry it was a typo, OK if you think it's clear enough it's fine by me.

from inops.

karoliskoncevicius avatar karoliskoncevicius commented on September 27, 2024

Nope it's good, added it to the behaviour in pull req #29 Was just confused about if you wanted this in Examples or Behaviour. And after that - if you were really getting FALSE.

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.