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

ordcommR Documentation

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)

David W. Roberts droberts@montana.edu

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 documentation built on April 10, 2023, 5:08 p.m.

Related to ordcomm in labdsv...