'.)
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Duncan Murdoch
Sent: Monday, March 07, 2011 3:52 PM
To: Cesar Hincapié
Cc: r-help@r-project.org
Subject: Re: [R] generate 3 distinct random samples without replacement
On 07/03/2011
ce d1 with
length(d1).
(When you say 'distinct', I'm assuming you mean 'disjoint'.)
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Duncan Murdoch
Sent: Monday, March 07, 2011 3:52 PM
To: Cesar Hincapié
Cc
On 07/03/2011 2:17 PM, Cesar Hincapié wrote:
Hello:
I wonder if I could get a little help with random sampling in R.
I have a vector of length 7375. I would like to draw 3 distinct random
samples, each of length 100 without replacement. I have tried the following:
d1<- 1:7375
set.seed(7)
i
Cesar, your indexing is wrong:
On Mon, Mar 7, 2011 at 2:17 PM, Cesar Hincapié
wrote:
> Hello:
>
> I wonder if I could get a little help with random sampling in R.
>
> I have a vector of length 7375. I would like to draw 3 distinct random
> samples, each of length 100 without replacement. I hav
om when its empty? Does the room,
the thing itself have purpose? Or do we, what's the word... imbue it."
- Jubal Early, Firefly
r-help-boun...@r-project.org wrote on 03/07/2011 02:17:19 PM:
> [image removed]
>
> [R] generate 3 distinct random samples without replacemen
Hello:
I wonder if I could get a little help with random sampling in R.
I have a vector of length 7375. I would like to draw 3 distinct random
samples, each of length 100 without replacement. I have tried the following:
d1 <- 1:7375
set.seed(7)
i <- sample(d1, 100, replace=F)
s1 <- sort(d1[i
6 matches
Mail list logo