View source: R/circular_functions.R
circ_seq | R Documentation |
Sequence generation for circular data
circ_seq(from, to, int, by, length.out = NULL)
from, to |
the starting and (maximal) end values of the
sequence. Of length |
int |
A numeric value. The number of units of |
by |
number: increment of the sequence. |
length.out |
desired length of the sequence. A
non-negative number, which for |
seq
circ_seq(5, 8, int = 12) ## expected c(5, 6, 7, 8)
circ_seq(-7, 8, int = 12) ## expected c(5, 6, 7, 8)
circ_seq(-2, 3, int = 12) ## expected c(10, 11, 12, 1, 2, 3)
circ_seq(-2, 3, int = 12, by = 2) ## expected c(10, 12, 2)
circ_seq(-2, 3, int = 12, length.out = 3) ## expected c(10, 0.5, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.