Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

mosaic

Project MOSAIC Statistics and Mathematics Teaching Utilities

v1.8.3
GPL (>= 2)
Authors
Randall Pruim [aut, cre], Daniel T. Kaplan [aut], Nicholas J. Horton [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.