[R] bug in unsplit()? (PR#1846)

hedderik@cmu.edu hedderik@cmu.edu
Sun, 28 Jul 2002 22:45:21 +0200 (MET DST)


> even if the same f is used for split() and unsplit(). That can be
> quite OK, but there's a marginal risk that it causes an inconsistency
> somewhere so that the split and unsplit aren't exact inverses.

OK, I understand. Thanks for explaining.

>> So, lists with unequal lengths.
>
> But does it work??

You're right, it doesn't work. I was a bit blinded by the fact that

split(1:10,list(a=1:2,b=1:2))

did what I expected, although I now understand that I should not rely on 
these results. Should have payed more attention to the help pages and 
the warnings.

  - Hedderik.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._