Re: [R] avoiding the sample in built function

2011-11-23 Thread David Winsemius
On Nov 23, 2011, at 2:56 PM, Kevin E. Thorpe wrote: On 11/23/2011 02:01 PM, sarah44 wrote: Dear all, I am currently working on a function in which I would like to avoid using the command sample(). Therefore, I am now trying to make a for loop that does the same thing as the in built fu

Re: [R] avoiding the sample in built function

2011-11-23 Thread Kevin E. Thorpe
On 11/23/2011 02:01 PM, sarah44 wrote: Dear all, I am currently working on a function in which I would like to avoid using the command sample(). Therefore, I am now trying to make a for loop that does the same thing as the in built function sample does: Rearranging the items of a object randoml

Re: [R] avoiding the sample in built function

2011-11-23 Thread R. Michael Weylandt
Why would you want to avoid sample()? It's a perfectly wonderful function. Michael On Wed, Nov 23, 2011 at 2:01 PM, sarah44 wrote: > Dear all, > > I am currently working on a function in which I would like to avoid using > the command sample(). > > Therefore, I am now trying to make a for loop t

[R] avoiding the sample in built function

2011-11-23 Thread sarah44
Dear all, I am currently working on a function in which I would like to avoid using the command sample(). Therefore, I am now trying to make a for loop that does the same thing as the in built function sample does: Rearranging the items of a object randomly. So, the output I want to you get is