evenly.spaced | R Documentation |
Determines whether the entries in a numeric vector are evenly spaced and increasing.
evenly.spaced(x, tol = 1e-07)
x |
Numeric vector. |
tol |
Relative tolerance. |
The result is TRUE
if x
is an increasing sequence
in which the successive differences diff(x)
are all equal to one another (within the specified relative tolerance),
and FALSE
otherwise.
A single logical value.
.
evenly.spaced(seq(0, 1, length=4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.