search for: 7fa24fc69850

Displaying 2 results from an estimated 2 matches for "7fa24fc69850".

2020 Jul 22
3
Invisible names problem
I ran into strange behavior when removing names. Two ways of removing names: i <- rep(1:4, length.out=20000) k <- c(a=1, b=2, c=3, d=4) x1 <- unname(k[i]) x2 <- k[i] x2 <- unname(x2) Are they identical? identical(x1,x2) # TRUE but no identical(serialize(x1,NULL),serialize(x2,NULL)) # FALSE But problem is with serialization type 3, cause:
2020 Jul 22
0
Invisible names problem
...... > .Internal(inspect(unname(k[i]))) @10a50c000 14 REALSXP g0c7 [] (len=20000, tl=0) 1,2,3,4,1,... > .Internal(inspect(x2)) @7fa24fc692d8 14 REALSXP g0c0 [REF(1)] wrapper [srt=-2147483648,no_na=0] @10a228000 14 REALSXP g0c7 [REF(1),ATT] (len=20000, tl=0) 1,2,3,4,1,... ATTRIB: @7fa24fc69850 02 LISTSXP g0c0 [REF(1)] TAG: @7fa24b803e90 01 SYMSXP g0c0 [MARK,REF(5797),LCK,gp=0x4000] "names" (has value) @10a250000 16 STRSXP g0c7 [REF(65535)] (len=20000, tl=0) @7fa24ba575c8 09 CHARSXP g0c1 [MARK,REF(10005),gp=0x61] [ASCII] [cached] "a" @7fa24be24428 09 CHA...