Learn R Programming

labdsv (version 2.1-0)

reconcile: Reconcile Community and Site Data.Frames

Description

reconcile takes two data frames (comm and site) and sorts both into the same order, and then deletes any rows unique to either of the two data.frames, achieving perfect correspondence of the two.

Usage

reconcile(comm,site,exlist)

Value

A list object with two elements: comm and site, which are the sorted and reconciled data.frames.

Arguments

comm

a community abundance data.frame with samples as rows and species as columns

site

a data.frame of site or environmental variables with samples as rows and variables as columns

exlist

a switch to control listing specific plots vs simply the number of plots

Author

David W. Roberts droberts@montana.edu

Details

reconcile sorts each data.frame alphabetically by row.name, and then compares the list of row.names to identify sample plots common to both data.frames. Sample plots which occur in only one of the data.frames are deleted.

Examples

Run this code
data(bryceveg)   # returns a data.frame of taxon abundance
data(brycesite)  # returns a data.frame of site variables
test <- reconcile(bryceveg,brycesite)

Run the code above in your browser using DataLab