R/S Difference - split
Robert Gentleman
rgentlem@stat.auckland.ac.nz
Thu, 8 Jan 1998 13:18:55 +1300 (NZDT)
The difference is more fundamental:
split(1:10,1:2)
yields
$"1":
[1] 1 3 5 7 9
$"2":
[1] 2 4 6 8 10
in Splus and an error in R. R is not recycling the factor. I'll see
about fixing this. Splus says that if group is shorter it should be
replicated to fill things up and if it is longer a warning will be
printed that some of the groups will have length zero. Any reasons
not to be compatible?
robert
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._