Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ordcomm

Re-Order the Rows and Columns of a Taxon Data Frame


Description

Allows analysts to interactively re-order a community data frame to achieve a ‘structured’ table following phytosociological principles.

Usage

ordcomm(comm,site)

Arguments

comm

a community data frame

site

a site or environment data frame

Details

Prints a copy of the community data frame, and then prompts for plots to move in front of another plot. It then prompts for species to move in front of a specified species. Multiple plots or species can be moved in a single move, with plot or species IDs separated by commas with no blanks. The program cycles between prompting for plots to move, and then species to move, until both prompts are responded to with blank lines.

Value

produces a list with two components:

comm

the new community data frame

site

the new site data frame

Note

This is a a fairly simple means to sort a table. For large tables, it is often possible (and preferable) to sort the tables with ordination coordinates or other indices, but this function allows analysts to order the table arbitrarily into any form.

Author(s)

See Also

summary.indval,const,importance

Examples

## Not run: data(bryceveg) # returns a data frame called bryceveg
## Not run: data(brycesite) # returns a data frame called brycesite
## Not run: demo <- ordcomm(bryceveg,brycesite)
## Not run: newveg <- demo$taxon
## Not run: newsite <- demo$site

labdsv

Ordination and Multivariate Analysis for Ecology

v2.0-1
GPL (>= 2)
Authors
David W. Roberts <droberts@montana.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.