Comments (3)
Coincidentally, I just learned this idiom for vectorized isTRUE
and friends from the source for as.matrix.data.frame
:
x <- c(TRUE, NA, FALSE)
x %in% TRUE
#> [1] TRUE FALSE FALSE
x %in% FALSE
#> [1] FALSE FALSE TRUE
!x %in% TRUE
#> [1] FALSE TRUE TRUE
!x %in% FALSE
#> [1] TRUE TRUE FALSE
from vctrs.
Reminded of this issue for first time in long time.
It looks like isFALSE()
is coming to R in 3.5.
from vctrs.
This feels like it might just be part of #22 - i.e. your vectorised isTRUE
would just be equal(x, TRUE)
(for some definition of equal) because it would use the hashing/%in%
definition of equality where NA == TRUE
is false.
from vctrs.
Related Issues (20)
- `vec_as_subscript()` evaluates `arg` eagerly in some cases HOT 1
- namespace ‘vctrs’ 0.5.1 is already loaded, but >= 0.5.2 is required HOT 1
- Error merging datasets HOT 2
- Error in `vctrs::vec_locate_matches()`: HOT 2
- fasstr Date Validate error HOT 1
- Error in `vec_slice()`: HOT 1
- `vec_group_loc()` should return the unique locations in the first column, not the unique values
- `vec_rbind()`: `proxy` of type `integer` incompatible with `value` proxy of type `double` HOT 2
- Release vctrs 0.6.0
- vctrs 0.6.0 revdep tracker
- Upkeep for vctrs
- Indicate that `vec_assert()` is not encouraged HOT 2
- vctrs upkeep 2023
- Release vctrs 0.6.1
- Obscure CRAN error HOT 4
- Typo in `?vec_duplicate`
- Error in `vec_rank()` HOT 1
- Unexpected size error in `vec_rbind` when combining tibbles with `survival::Surv()` columns and empty tibbles HOT 2
- Error when using the full_join function HOT 2
- Error in 'vec_rbind()' HOT 2
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 vctrs.