search for: xc0_

Displaying 1 result from an estimated 1 matches for "xc0_".

Did you mean: x00_
2003 Feb 27
0
unwanted coercion of length 0 vectors (PR#2587)
...ote also that assigning to a hitherto non-existent element of x1, e.g. x1[2]_ NA, also does not coerce. But: test> x0_ numeric( 0) test> x0[1]_ NA test> mode( x0) [1] "logical" Similar things happen with vectors of mode 'complex' and even 'character': test> xc0_ complex( 0) test> xc0[1]_ 3 test> mode( xc0) [1] "numeric" # should be 'complex' test> xch0_ character(0) test> xch0[ 1]_ 3 test> mode( xch0) [1] "numeric" Intriguingly, something strange happens even with lists: test> xl1_ list( 1) test> xl1[1]_...