binmat {mefa}R Documentation

Make Presence/Absence Matrix

Description

This is a utility function to convert a matrix with abundance (or measurement) data into a binary (presence/absence) format.

Usage

binmat(matrix)

Arguments

matrix a matrix, containing data to convert.

Value

A result is a matrix with same dimensions and row/column names as the original.

Author(s)

Peter Solymos, Solymos.Peter@aotk.szie.hu, http://www.univet.hu/users/psolymos/personal/

Examples

(x <- matrix(data = rpois(15, 1), nrow = 5, ncol = 3))
binmat(x)

[Package mefa version 1.1-2 Index]