[R] how to randomize a vector

leffgh leffgh at 163.com
Mon Nov 12 07:49:54 CET 2007


I have a vector whose length is nearly 70 thousand.
I need randomize it for 1000 times .
for randomizing , I mean ,the elements of the vector remain intact while
their order in the vector get changed randomly.
I have written a function which seems to be able to solve short vectors ,
but waste  a lot of time when dealing with the the long vector mentioned
above.
 
-- 
View this message in context: http://www.nabble.com/how-to-randomize-a-vector-tf4789292.html#a13700770
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list