Learn R Programming

BioGeoBEARS (version 0.2.1)

read_detections: Read a file with detection counts per area

Description

This function reads in a tab-delimited text file containing counts of detections of each OTU in each region. These could be from database records or some other source.

Usage

read_detections(detects_fn, OTUnames = NULL, areanames = NULL, tmpskip = 0, phy = NULL)

Arguments

detects_fn
The filename of the detections file.
OTUnames
Default NULL, in which case the first column of the text file is used as row names/OTU names.
areanames
Default NULL, in which case the text file column headings are used.
tmpskip
How many lines should be skipped before reading the text file? Default 0.
phy
An ape phylo object. If included, the rows will be sorted to match the order of tree tip labels.

Value

dtf

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

Bottjer_Jablonski_1988

See Also

rcpp_calc_anclikes_sp_COOweights_faster

Examples

Run this code
testval=1

Run the code above in your browser using DataLab