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

43_other_sequence_functions

Other Sequence Functions


Description

Compute midpoints and endpoints from a vector.

Usage

midpoints (x)
endpoints (x)

Arguments

x

An integer/numeric vector.

Value

The midpoints function returns a vector, with a length one less than the original vector.

The endpoints function returns a length two vector.

See Also

Sequence Properties
(Other than unique-related properties).

Examples

x <- 1:4

midpoints (x)
endpoints (x)

vectools

Advanced Vector Toolkit

v0.2.0
GPL (>= 2)
Authors
Abby Spurdle
Initial release
2020-10-22

We don't support your browser anymore

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