vecseq | R Documentation |
vecseq
returns concatenated multiple sequences
vecseq(x, y = NULL, concat = TRUE, eval = TRUE)
x |
vector of sequence start points |
y |
vector of sequence end points (if |
concat |
vector of sequence end points (if |
eval |
vector of sequence end points (if |
This is a generalization of sequence()
in that you can choose
sequence starts other than 1 and also have options to no concat and/or
return a call instead of the evaluated sequence.
if concat == FALSE
and eval == FALSE
a list with n calls that generate sequences
if concat == FALSE
and eval == TRUE
a list with n sequences
if concat == TRUE
and eval == FALSE
a single call generating the concatenated
sequences
if concat == TRUE
and eval == TRUE
an integer vector of concatentated sequences
Angelo Canty, Jens Oehlschlägel
:
, seq()
, sequence()
sequence(c(3, 4))
vecseq(c(3, 4))
vecseq(c(1, 11), c(5, 15))
vecseq(c(1, 11), c(5, 15), concat=FALSE, eval=FALSE)
vecseq(c(1, 11), c(5, 15), concat=FALSE, eval=TRUE)
vecseq(c(1, 11), c(5, 15), concat=TRUE, eval=FALSE)
vecseq(c(1, 11), c(5, 15), concat=TRUE, eval=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.