[R] Re: variable argument lists
Thomas Lumley
tlumley at u.washington.edu
Tue Apr 2 20:30:11 CEST 2002
On Tue, 2 Apr 2002, Brad Buchsbaum wrote:
>
> Suppose one does not know in advance the number of arguments to the order
> function and those arguments are stored in a list.
>
> e.g. x <- list(a,b,c)
>
>
> How would one go about ordering the list of vectors contained in x
> (with b, c, etc. representing "tie-breaking" vectors for the order
> function).
do.call("order",x)
-thomas
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list