presenceMatrix: Create a matrix of presences and absences

Description Usage Arguments Value Author(s) Examples

View source: R/presenceMatrix.R

Description

Creates a community matrix of taxon presences and absences from a data frame with a column of sites and a column of species.

Usage

1
presenceMatrix(Data, Rows = "geoplate", Columns = "genus")

Arguments

Data

A dataframe or matrix

Rows

A characer string

Columns

A character string

Value

A presence-absence matrix

Author(s)

Andrew A. Zaffos

Examples

1
2
3
4
5
6
7
8
# Download a test dataset of pleistocene bivalves.
# DataPBDB<-downloadPBDB(Taxa="Bivalvia","Pleistocene","Pleistocene")

# Create a community matrix of genera by plates.
# CommunityMatrix<-presenceMatrix(DataPBDB,Rows="geoplate",Columns="genus")

# Create a community matrix of families by geologic interval.
# CommunityMatrix<-presenceMatrix(DataPBDB,Rows="early_interval",Columns="family")

velociraptr documentation built on Aug. 1, 2019, 1:05 a.m.