vecseq {bit} | R Documentation |
Vectorized Sequences
Description
vecseq
returns concatenated multiple sequences
Usage
vecseq(x, y = NULL, concat = TRUE, eval = TRUE)
Arguments
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 |
Details
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.
Value
if
concat == FALSE
andeval == FALSE
a list with n calls that generate sequencesif
concat == FALSE
andeval == TRUE
a list with n sequencesif
concat == TRUE
andeval == FALSE
a single call generating the concatenated sequencesif
concat == TRUE
andeval == TRUE
an integer vector of concatentated sequences
Author(s)
Angelo Canty, Jens Oehlschlägel
See Also
:
, seq()
, sequence()
Examples
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)