137879 threads
726 threads
2 emails from 2 people
Dear all, I was wondering whether R has an operator or function that randomly permutes the element of a vector. Thanks, Jiao
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)
> Dear all, > > I was wondering whether R has an operator or function that randomly permutes the element of a vector. > >