make.binary: Convert a matrix or data.frame to binary

Description Usage Arguments Value See Also

Description

Converts an abundance dataset to presence/absence.

Usage

1
make.binary(dataset, threshold)

Arguments

dataset

a data.frame or matrix

threshold

the value above which values of 'dataset' are set to one. Defaults to zero.

Value

Returns a numeric data.frame with same dimensions as 'dataset', but containing only zeros and ones.

See Also

cut


mjwestgate/sppairs documentation built on May 23, 2019, 1:05 a.m.