Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upbetween changed behaviour from NA bounds 'unknown' to 'missing' #3522
Comments
|
@cguill95 thanks for reporting this regression, for future please try to always include reproducible example. install.packages("data.table")
library(data.table)
between(1:5, 2L, NA, incbounds=TRUE)
#[1] FALSE TRUE TRUE TRUE TRUEinstall.packages("https://cran.r-project.org/src/contrib/Archive/data.table/data.table_1.11.8.tar.gz")
library(data.table)
between(1:5, 2L, NA, incbounds=TRUE)
#[1] FALSE NA NA NA NA |
Dear all,
I have discovered recently the change introduced in version 1.12.0 regarding
betweenand howNAare now treated.Given this change may break routines relying on the previous behavior, I was wondering whether in the future a parameter could be introduced so that
NAare not treated as missing values but asNA(i.e. would return the same asx >= lower & x <= upper).Thank you very much
Best,
Cyrille