Skip to content
Prev 3254 / 7420 Next

Randomizing matrices

Thanks Peter,

I think that might actually work. I Will let you know.

Allan

----- Original Message -----
From: "Peter Solymos" <solymos at ualberta.ca>
To: "Allan Edelsparre" <aedelspa at uoguelph.ca>
Cc: r-sig-ecology at r-project.org
Sent: Saturday, August 18, 2012 10:50:46 AM
Subject: Re: [R-sig-eco] Randomizing matrices

Allan,

Simply defining the dimension might work:
dim(v) <- dim(trial2)
but it is not clear what you are trying to achieve with the rep(...,
1000) part. It won't permute the matrix 1000 times but repeat same
values. You might want to have a look at oecosimu in vegan which
calculates the distribution given you SSD statistics, and you can use
many different matrix permutation algorithms although it seems to me
that you are just shuffling the cells.

Cheers,

Peter

--
P?ter S?lymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB
solymos at ualberta.ca, Ph 780.492.8534, http://psolymos.github.com
Alberta Biodiversity Monitoring Institute, http://www.abmi.ca
Boreal Avian Modelling Project, http://www.borealbirds.ca
On Sat, Aug 18, 2012 at 7:05 AM, Allan Edelsparre <aedelspa at uoguelph.ca> wrote: