reconcile takes two data frames (taxa 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(taxa,site)
Arguments
taxa
a taxon abundance data.frame with samples as rows and species as columns
site
a data.frame of site or environmental varialbles with samples as rows and variables as columns
Value
a list object with two elements: taxa and site, which are the sorted and
reconciled data.frames.
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.
# NOT RUN { data(bryceveg) # returns a data.frame of taxon abundance data(brycesite) # returns a data.frame of site variables test <- reconcile(bryceveg,brycesite)
# }