Re: [Rd] NAs in unsplit factor

2006-06-08 Thread François Pinard
[Jeff Enos] >Below is a simple example calling split and unsplit on a numeric >vector of length 2 where 'f' is c(1,NA). >> unsplit(split(c(1,2), c(1,NA)), c(1,NA)) >[1] 1 0 >I noticed that the call to vector in unsplit gives us 0 as the 2nd >element of the result. >Is this the intended result,

[Rd] NAs in unsplit factor

2006-06-08 Thread Jeff Enos
R-devel, Below is a simple example calling split and unsplit on a numeric vector of length 2 where 'f' is c(1,NA). > unsplit(split(c(1,2), c(1,NA)), c(1,NA)) [1] 1 0 I noticed that the call to vector in unsplit gives us 0 as the 2nd element of the result. Is this the intended result, as opposed