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
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
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@
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
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:
5 matches
Mail list logo