search for: xch0_

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

Did you mean: xch0
2003 Feb 27
0
unwanted coercion of length 0 vectors (PR#2587)
...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]_ 3 test> xl1 [[1]] [1] 3 test> xl0_ list() test> xl0[1]_ 3 Error: (list) object cannot be coerced to vector type...