seq_ranges | R Documentation |
Generate sequential ranges
seq_ranges(from = 1, to = from[length(from)], by = (to -
from[1])/length.out, length.out = as.numeric(to - from[1]), step = by)
from |
Starting value of the sequence. If |
to |
If |
by |
Range width. |
length.out |
Desired length of the sequence. |
step |
Increment of the range starting value. |
x <- as_time(1:10)
seq_ranges(x, by = 3)
seq_ranges(x, length.out = 2)
seq_ranges(x, by = 3, step = 1)
seq_ranges(x[1], x[3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.