[R] permutation operator

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun May 6 22:46:31 CEST 2007


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)



More information about the R-help mailing list