Re: [R] permutation operator

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sun, 06 May 2007 22:46:31 +0200

Jiao Yang wrote:
> Dear all,
>
> I was wondering whether R has an operator or function that randomly permutes the element of a vector.
>
>
Yes, it does.

Oh, you wanted to know what it is called, too?

sample(x)



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 06 May 2007 - 20:52:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 06 May 2007 - 21:31:55 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.