mids: Return vector of the mid points of the argument

View source: R/statistic.R

midsR Documentation

Return vector of the mid points of the argument

Description

Create the sequence of the mid points of vector, i.e., (x[-1]+x[-length(x)])/2

Usage

mids(x)

Arguments

x

terget vector

Value

vector of mid points

Examples

x = c(0.0,0.2,0.6,1.2)
ans = mids(x)
# ans == c(0.1,0.4,0.9)

hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.