mid: midpoints along a sequence

View source: R/xpnorm.R

midR Documentation

midpoints along a sequence

Description

Compute a vector of midpoints between values in a numeric vector

Usage

mid(x)

Arguments

x

a numeric vector

Value

a vector of length 1 less than x

Examples

mid(1:5)
mid((1:5)^2)

mosaic documentation built on May 29, 2024, 5:27 a.m.