Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


mosaic (version 0.14)

mid: 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

Run this code
mid(1:5)
mid((1:5)^2)

Run the code above in your browser using DataLab