seql | R Documentation |
Sequence generation with automatic cycling
seql(x, target)
x |
R object of some |
target |
R object of some |
E.D. Gennatas
color <- c("red", "blue")
target <- 1:5
color[seql(color, target)]
# "red" "blue" "red" "blue" "red"
color <- c("red", "green", "blue", "yellow", "orange")
target <- 1:3
color[seql(color, target)]
# "red" "green" "blue"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.