getIntervalLimits: Get interval limits (cut points) from a vector of midpoints

View source: R/getIntervalLimits.R

getIntervalLimitsR Documentation

Get interval limits (cut points) from a vector of midpoints

Description

Function to return a vector of interval limits from a vector of midpoints.

Usage

getIntervalLimits(xs)

Arguments

xs
  • the vector of interval midpoints

Details

Assumes interval limits are midway between coordinates in xs. First and last coordinates assume same widths as first and last cells. Resulting vector has nx+1 values, if xs has nx values.

Value

the vector of interval limits (cutpoints)


wStockhausen/wtsUtilities documentation built on Aug. 18, 2024, 11:48 p.m.