Learn R Programming

StratigrapheR (version 1.3.1)

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 = "[]")

Value

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

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

See Also

as.lim

Examples

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

Run the code above in your browser using DataLab