Skip to contents

Get the means between the points of a sequence

Usage

seq_mean(x)

Arguments

x

a vector of numeric values

Value

A numeric vector of midpoints between consecutive values in x.

Examples


seq_mean(c(1, 3, 5, 7, 10))
#> [1] 2.0 4.0 6.0 8.5