rebound: Simplifies boundary indicators for lim objects

View source: R/rebound.R

reboundR Documentation

Simplifies boundary indicators for lim objects

Description

Simplifies boundary indicators for lim objects: from the wide range supported by R ("[]", "[)", "(]", "()", "[[", "]]", "][", "open", "closed", "left-open", "right-open", "left-closed", "right-closed") to "[]", "[[", "]]" and "][" only

Usage

rebound(b, na.errors = F)

Arguments

b

a vector of boundary indicators

na.errors

whether to replace all other values by NA (rather than simply stopping the function)

Value

a simplified vector of boundary indicators ("[]", "[[", "]]" and "][" only)

See Also

as.lim

Examples

bounds <- c("[]", "[)", "(]", "()",
            "[[", "]]", "][",
            "open", "closed",
            "left-open", "right-open",
            "left-closed", "right-closed")

rebound(bounds)


StratigrapheR documentation built on July 9, 2023, 6:02 p.m.