midPoints: Calculate cumulative midpoints

Description Usage Arguments Details Value Examples

View source: R/midPoints.R

Description

midPoints Calculate cumulative midpoints of a numeric vector.

Usage

1

Arguments

x

A numeric vector

Details

Calculates the cumulative midpoints of a numeric vector. To be used in plotting functions, especially for Manhattan plots.

Value

A numeric vector of length length(x) - 1

Examples

1
midPoints(rep(1, 10))

sean-cho/toolkit documentation built on May 29, 2019, 4:24 p.m.