bin: Check a vector for presence-absence

View source: R/bin.R

binR Documentation

Check a vector for presence-absence

Description

Function for calculating presence-absence from a vector. It does not take into account NA.

Usage

bin(x)

Arguments

x

A vector of numbers.

Examples


# There is at least a presence
bin(c(0, 1, 10))

# There are not presence
bin(c(0, 0))

alexology/biomonitoR documentation built on Oct. 10, 2024, 12:02 a.m.