evenly | R Documentation |
For a continuous vector x
, evenly
and seq_min_max()
create a sequence of n
evenly-spaced values over the range min(x)
– max(x)
. For a factor x
, the function returns levels(x)
.
evenly(x, n = 100, by = NULL) seq_min_max(x, n, by = NULL)
x |
numeric; vector over which evenly-spaced values are returned |
n |
numeric; the number of evenly-spaced values to return. A default of
|
by |
numeric; the increment of the sequence. If specified, argument |
A numeric vector of length n
.
x <- rnorm(10) n <- 10L evenly(x, n = n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.