presenceMatrix {velociraptr}R Documentation

Create a matrix of presences and absences

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

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


# 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")


[Package velociraptr version 1.1.0 Index]