casing: Finds values in a vector directly above and below a number

View source: R/casing.R

casingR Documentation

Finds values in a vector directly above and below a number

Description

Finds values in a vector directly above and below a number

Usage

casing(x, into)

Arguments

x

a number

into

a vector where to find the values directly above and below x

Value

a vector of the values of "into" vector directly above and below x respectively

See Also

Similar function : encase

Examples

casing(0.21,c(0.3,0.4,0.1,0.2))


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