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" ,

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 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 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

[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