[R] error in exists.....
akshay kulkarni
@k@h@y_e4 @end|ng |rom hotm@||@com
Tue Dec 27 18:30:06 CET 2022
Dear members,
I have the following code:
> E <- new.env()
> E$L <- list()
> i <- 1
> E$L[[i]]$T1A1 <- Sys.time()
> exists("T1A1", where = E$L[[i]])
Error in list2env(list(1, T1A1 = 1672161002.38743), NULL, <environment>) :
attempt to use zero-length variable name
I want the output of the exists() function to be TRUE. In any case:
> E$L[[1]]$T1A1
[1] "2022-12-27 22:40:02 IST"
Please help me solve this conundrum....
Thanking you,
Yours sincerely,
AKSHAY M KULKARNI
[[alternative HTML version deleted]]
More information about the R-help
mailing list