55_sequence_properties_2: Other Sequence Properties

Description Usage Arguments Value See Also Examples

Description

Compute midpoints and endpoints from a vector.

Usage

1
2
midpoints (v)
endpoints (v)

Arguments

v

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

Unique-Related Functions

Sequence Properties
(Other than unique-related properties).

Optimization-Related Functions

Examples

1
2
3
4
x <- 1:4

midpoints (x)
endpoints (x)

vectools documentation built on June 7, 2021, 9:08 a.m.