Description Usage Arguments Value See Also Examples
Compute midpoints and endpoints from a vector.
1 2 | midpoints (v)
endpoints (v)
|
v |
An integer/numeric vector. |
The midpoints function returns a vector, with a length one less than the original vector.
The endpoints function returns a length two vector.
Unique-Related Functions
Sequence Properties
(Other than unique-related properties).
Optimization-Related Functions
1 2 3 4 | x <- 1:4
midpoints (x)
endpoints (x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.