dist objects to database list format (where each line represents a similarity value calculated between two plots, so the list has three columns containing information on plot x, plot y and information on similarity/dissimilarity). This might be useful if further database processing is intended. If the given matrix is not of class dist, the whole matrix is converted. This might be handy if species matrices are to be converted to database format.liste(obj, x="NBX", y="NBY", entry=NULL, factorize=TRUE,
splist=FALSE)"NBX" the neighbour X. Obsolete when splist = TRUE."NBY" the neighbour Y. Obsolete when splist = TRUE.splist = TRUE.data.frame with three columns:dist-object only the lower triangle is used. Named plot when a species matrix is transformed with splist = TRUE.spec when a species matrix is transformed with splist = TRUE.occ when a species matrix is transformed with splist = TRUE.x will be the species names and y will be the plot names. If it is needed vice versa, you have to change column order. For convenience you can set splist = TRUE and you will get a species list in database format with columns representing the plot, species and occurrence information. Furthermore zero occurrences are already omitted.reshape, data.frame. It resembles functionality of reshape - which is more flexible (but also more complex).data(abis)
## there are empty species entries:
sum(colSums(abis.spec)==0)
## remove empty species
abis.spec <- abis.spec[,colSums(abis.spec)!=0]
abis.spec.ls <- liste(abis.spec, splist=TRUE)Run the code above in your browser using DataLab