--- On Mon, 4/25/11, kmatthews wrote:
> From: kmatthews
> Subject: Re: [R] Random Relabelling
> To: r-help@r-project.org
> Received: Monday, April 25, 2011, 10:53 AM
> Thanks to everyone... this helps a
> lot. Just a quick question about
> etiquette in this forum
On Apr 25, 2011, at 10:53 AM, kmatthews wrote:
Thanks to everyone... this helps a lot. Just a quick question about
etiquette in this forum (as it my first time questioning)... are
notes of
gratitude usually given in these forums?
The practice varies, some people do appreciate it. Doing so
===
> >
> > scores <- 1:5
> > mydata <- matrix(data=NA, nrow=5, ncol=10)
> >
> > for(i in 1:10) {
> > mydata[,i] <- sample(scores, 5, replace=FALSE)
> > }
> >
> > =
> > --- On Wed, 4/20/11, K
On 2011-04-23 03:42, John Kane wrote:
I KNEW there was a better way!
--- On Wed, 4/20/11, Jeremy Hetzel wrote:
From: Jeremy Hetzel
Subject: Re: [R] Random Relabelling
To: r-help-arch...@googlegroups.com
Cc: r-help@r-project.org, "Kevin Matthews"
Received: Wednesday, April 20, 201
I KNEW there was a better way!
--- On Wed, 4/20/11, Jeremy Hetzel wrote:
> From: Jeremy Hetzel
> Subject: Re: [R] Random Relabelling
> To: r-help-arch...@googlegroups.com
> Cc: r-help@r-project.org, "Kevin Matthews"
> Received: Wednesday, April 20, 2011, 2:25 PM
&g
Hi:
How about
y <- rnorm(4000)
ymat <- rowMeans(replicate(1000, y[sample(4000)]))
hist(ymeans)
system.time({y <- rnorm(4000); yy <- rowMeans(replicate(1000,
y[sample(4000)]))})
user system elapsed
0.190.030.22
HTH,
Dennis
On Wed, Apr 20, 2011 at 7:04 AM, kmatthews wrote:
> I ha
ain this a bit more. At the moment I don't see what you are
> trying to achieve. "calculate the mean of the 1000 values at each of the
> 4000 points" does not seem to make sense.
>
> --- On Wed, 4/20/11, kmatthews wrote:
>
> > From: kmatthews
> > Sub
t; --- On Wed, 4/20/11, Kevin Matthews wrote:
>
> From: Kevin Matthews
> Subject: Re: [R] Random Relabelling
> To: "John Kane"
> Cc: r-h...@r-project.org
> Received: Wednesday, April 20, 2011, 1:22 PM
>
> I have a map of Iowa of with 4000 locations. At each loca
n 1:10) {
mydata[,i] <- sample(scores, 5, replace=FALSE)
}
=
--- On Wed, 4/20/11, Kevin Matthews wrote:
From: Kevin Matthews
Subject: Re: [R] Random Relabelling
To: "John Kane"
Cc: r-help@r-project.org
Received: Wednesday, Apri
Can you explain this a bit more. At the moment I don't see what you are trying
to achieve. "calculate the mean of the 1000 values at each of the 4000
points" does not seem to make sense.
--- On Wed, 4/20/11, kmatthews wrote:
> From: kmatthews
> Subject: [R] Random Rel
I have 4000 observations that I need to randomly relabel 1000 times and then
calculate the mean of the 1000 values at each of the 4000 points. Any ideas
for where to begin?
Thanks
Kevin
--
View this message in context:
http://r.789695.n4.nabble.com/Random-Relabelling-tp3463100p3463100.html
Se
11 matches
Mail list logo