Comments (5)
I think this is added under section about "Behaviour" ? Or do you think that is not enough?
from inops.
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.
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.
Sorry it was a typo, OK if you think it's clear enough it's fine by me.
from inops.
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)
- README HOT 8
- consistency between in_check ops and equality/comparison ops ? HOT 8
- simplify replace ops HOT 2
- package name HOT 7
- `%in%<-`, `%out%`, `%out%<-` HOT 1
- `%in{}%` on (lists of) language objects HOT 1
- regex ops don't have the same consistency to == as other ops HOT 1
- inconsistent way of dealing with factors in `%in{}%` HOT 3
- Improve error "NAs are not allowed in subscripted assignments" in replacement functions HOT 5
- Case for replacement acting as `ifelse()` ? HOT 4
- `%#in%` family HOT 18
- CRAN issues HOT 25
- dealing with NAs HOT 6
- conflicted doesn't like inops HOT 14
- The following object is masked from ‘package:base’: <<-
- More fame and glory HOT 1
- multiple replacements HOT 5
- Operator for selecting quantile range?
- First CRAN release HOT 85
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inops.