Learn R Programming

flashlight (version 0.7.5)

midpoints: Midpoints

Description

Internal function that takes a vector of breaks and calculates midpoints of subsequent unique breaks.

Usage

midpoints(breaks)

Arguments

breaks

Numeric vector of cut points or a single number specifying the number of intervals desired.

Value

Vector of the same length as x minus 1 with midpoints of breaks.