[R-sig-eco] Species CoOccurance

2010-03-12 Thread Lanna Jin
Hello All, I've been sifting through tons of R Documentation, trying to find a command that converts a community matrix dataset into a species pair co-occurance data frame, and have failed miserably to find one. Does a function already exist in one of the community analysis packages? Thanks in a

Re: [R-sig-eco] Species CoOccurance

2010-03-12 Thread Peter Solymos
Lanna, I don't know exactly what do you mean by co-occurrence data frame, but if you'd like to get a species-by-species matrix, in which you count the co-occurrences of the species (columns in the sites-by-species community matrix) with each other, you can use the crossprod function or the %*% ope

Re: [R-sig-eco] Species CoOccurance

2010-03-12 Thread Lanna Jin
Hi Peter, Thanks for your quick response. I am working with a dataframe that has columns of Year, Location, Type (pertains to type of location), Species, and Presence/Absence. What I'm interested in doing is generating a data frame that would not lose the "Year" , "Location" and "Type" data. I

Re: [R-sig-eco] Species CoOccurance

2010-03-12 Thread Wilfried Thuiller
Hi there; library(ecodist) ?crosstab Wilfried Le 12 mars 10 à 16:07, Lanna Jin a écrit : > Hi Peter, > > Thanks for your quick response. I am working with a dataframe that > has > columns of Year, Location, Type (pertains to type of location), > Species, and > Presence/Absence. What I

Re: [R-sig-eco] Species CoOccurance

2010-03-12 Thread Tyler Smith
Lanna Jin writes: > Hi Peter, > > Thanks for your quick response. I am working with a dataframe that has > columns of Year, Location, Type (pertains to type of location), Species, and > Presence/Absence. What I'm interested in doing is generating a data frame > that would not lose the "Year" ,

[R-sig-eco] adonis question

2010-03-12 Thread Jaime Pinzon
Hi After performing a permutational ANOVA with adonis in vegan, is there a way to do multiple comparisons for significant factors with more than 2 levels as well for significant interactions? Any help would be very much appreciated Thanks, Jaime [[alternative HTML version dele

Re: [R-sig-eco] adonis question

2010-03-12 Thread gabriel singer
Hi Jaime, The interactions are just a matter of defining the formula as such, e.g. adonis(dist~factor1*factor2). I suppose, a multiple comparison (with the reasoning of a post-hoc test) can just be done using adonis() for pairwise comparisons and then use p.adjust(). Cheers, gabriel On 12/