Skip to content
Prev 76075 / 398502 Next

randomize

Luis Tercero wrote:

            
In principle, you are looking for sample().

If you don't need other values for the "restrict" argument than the 
default, you can simply define:

randomize <- function(x)
   sample(seq(nrow(x)))

Uwe Ligges