Re: [R] Drawing sample

2012-01-29 Thread Jorge I Velez
Take a look at ?sample HTH, Jorge.- On Sun, Jan 29, 2012 at 11:21 AM, Ron Michael <> wrote: > Dear all, here I need to draw all possible samples of size 2, from a > population, which is characterized by c(1,4,56, 3). Sampling will be done > with replacement. Is there any direct R function to f

Re: [R] Drawing sample

2012-01-29 Thread David Winsemius
On Jan 29, 2012, at 11:21 AM, Ron Michael wrote: Dear all, here I need to draw all possible samples of size 2, from a population, which is characterized by c(1,4,56, 3). > combn(c(1,4,56, 3), 2) # an enumeration of possible tuples [,1] [,2] [,3] [,4] [,5] [,6] [1,]1114

[R] Drawing sample

2012-01-29 Thread Ron Michael
Dear all, here I need to draw all possible samples of size 2, from a population, which is characterized by c(1,4,56, 3). Sampling will be done with replacement. Is there any direct R function to faciliate this darwing?   Thanks for your help __ R-help@

Re: [R] Drawing sample from a circle

2010-06-18 Thread Ted Harding
On 18-Jun-10 08:04:36, Ron Michael wrote: > Hi, I would like to draw 10 uniformly distributed sample points from a > circle with redius one and centered at (0,0). Is there any R function > to do that? > _ > Thanks, You can quite easily write one. [A] Sampling uniformly on the circumference of the

[R] Drawing sample from a circle

2010-06-18 Thread Ron Michael
Hi, I would like to draw 10 uniformly distributed sample points from a circle with redius one and centered at (0,0). Is there any R function to do that?   Thanks, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https: