Hi,
I have a problem with the following example:
library(nanotime)
library(data.table)
DT <- data.table(time=as.nanotime(seq(1, 3)))
DT[, shift.val := shift(time, 1, fill=NA)]
is.na(DT[1, shift.val]) # TRUE
DT[complete.cases(DT)] # still shows up here
here is my current configuration:
> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 8 (Core)
Matrix products: default
BLAS: /opt/r40-gcc84/lib64/R/lib/libRblas.so
LAPACK: /opt/r40-gcc84/lib64/R/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.13.0 nanotime_0.3.2
loaded via a namespace (and not attached):
[1] zoo_1.8-8 bit_4.0.4 compiler_4.0.0 RcppCCTZ_0.2.9
[5] Rcpp_1.0.5 bit64_4.0.5 grid_4.0.0 lattice_0.20-41
Hi,
I have a problem with the following example:
here is my current configuration: