Re: [R] rearrange set of items randomly

2011-11-14 Thread Greg Snow
reg.s...@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 >

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 `orde

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 thi

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 >

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 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: http://r.789695.n4.nabble.com/rearrange-se

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 function

[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