[R] adonis (vegan package) and subsetted factors

2008-04-10 Thread tyler
Hi, I'm trying to use adonis on a subset of data from a dataframe. The actual data is in columns 5:118, and the first four columns are various factors. There are 3 levels of the factor Habitat, and I want to examine differences among only two of them. So I started with: CoastNear =

Re: [R] adonis (vegan package) and subsetted factors

2008-04-10 Thread Gavin Simpson
On Thu, 2008-04-10 at 11:18 -0300, tyler wrote: Hi, I'm trying to use adonis on a subset of data from a dataframe. The actual data is in columns 5:118, and the first four columns are various factors. There are 3 levels of the factor Habitat, and I want to examine differences among only two

Re: [R] adonis (vegan package) and subsetted factors

2008-04-10 Thread tyler
On Thu, Apr 10, 2008 at 04:47:44PM +0100, Gavin Simpson wrote: This behaviour arises from the following, using the in-built dune data: newdune.env - subset(dune.env, Management != NM) newdune.env$Management [1] BF SF SF SF HF SF HF HF BF BF HF SF SF HF Levels: BF HF NM SF Notice

Re: [R] adonis (vegan package) and subsetted factors

2008-04-10 Thread Jari Oksanen
On 10 Apr 2008, at 18:57, tyler wrote: On Thu, Apr 10, 2008 at 04:47:44PM +0100, Gavin Simpson wrote: This behaviour arises from the following, using the in-built dune data: newdune.env - subset(dune.env, Management != NM) newdune.env$Management [1] BF SF SF SF HF SF HF HF BF BF HF SF