Learn R Programming

StratigrapheR (version 0.0.2)

mid.lim: Provides mid-points intervals in an ordered vector

Description

Provides mid-points intervals in an ordered vector

Usage

mid.lim(x, id = 1L, b = "[]")

Arguments

x

an ordered vector

id

a vector of n interval IDs (default is 1 for each interval)

b

a character vector for the interval boundaries rules, see as.lim help page for details

Value

a lim object of intervals with boundaries at midway between the x values

See Also

as.lim

Examples

Run this code
# NOT RUN {
mid.lim(c(1,3,7,20,45,63))

# }

Run the code above in your browser using DataLab