Re: [R] rearrange set of items randomly

2011-11-14 Thread Greg Snow
...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of flokke Sent: Monday, November 07, 2011 2:09 PM To: r-help@r-project.org Subject: [R] rearrange set of items randomly Dear all, I hope

Re: [R] rearrange set of items randomly

2011-11-08 Thread flokke
Sorry, but I dont think that I get what you mean (I am a quite new user though) I hae a data file of a sample, so I cannot use random numbers, the only thing I want to do is to randomly reassign the order of the items. -- View this message in context:

Re: [R] rearrange set of items randomly

2011-11-08 Thread Ted Harding
On 08-Nov-11 07:46:15, flokke wrote: Sorry, but I dont think that I get what you mean (I am a quite new user though) I hae a data file of a sample, so I cannot use random numbers, the only thing I want to do is to randomly reassign the order of the items. The simplest method of randomly

Re: [R] rearrange set of items randomly

2011-11-08 Thread Ted Harding
On 08-Nov-11 08:59:38, Ted Harding wrote: On 08-Nov-11 07:46:15, flokke wrote: Sorry, but I dont think that I get what you mean (I am a quite new user though) I hae a data file of a sample, so I cannot use random numbers, the only thing I want to do is to randomly reassign the order of the

Re: [R] rearrange set of items randomly

2011-11-08 Thread flokke
Thanks for the replies! Indeed, I could use order() instead of sample() but that it wouldnt be random anymore, as it sorts data points in increasing(!) order. Second, I have to use 1000 different samples. I got the hint that I have to do somethin with indeces, but still cant figure out what

Re: [R] rearrange set of items randomly

2011-11-08 Thread David Winsemius
On Nov 8, 2011, at 11:31 AM, flokke wrote: Thanks for the replies! Indeed, I could use order() instead of sample() but that it wouldnt be random anymore, as it sorts data points in increasing(!) order. Second, I have to use 1000 different samples. Please re-read the help page for

[R] rearrange set of items randomly

2011-11-07 Thread flokke
Dear all, I hope that this question is not too weird, I will try to explain it as good as I can. I have to write a function for a school project and one limitation is that I may not use the in built function sample() At one point in the function I would like to resample/rearrange the items of my

Re: [R] rearrange set of items randomly

2011-11-07 Thread David Winsemius
On Nov 7, 2011, at 4:09 PM, flokke wrote: Dear all, I hope that this question is not too weird, I will try to explain it as good as I can. I have to write a function for a school project and one limitation is that I may not use the in built function sample() At one point in the