[R] use of do.call and rep

Laura Holt lauraholt_983 at hotmail.com
Tue May 25 22:19:36 CEST 2004


If I use this:

rep(1:2,c(5,5))

I'll get
1 1 1 1 1 2 2 2 2 2

Is there a way to do this more efficiently, please?
Maybe via do.call?

Thanks,
Laura
mailto: lauraholt_983 at hotmail.com

_________________________________________________________________

http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




More information about the R-help mailing list