repfromto virtually recylcles object x and cuts out
positions from .. to
repfromto(x, from, to)
repfromto(x, from, to) <- valuea vector of length from - to + 1
repfromto is a generalization of rep(), where
rep(x, n) == repfromto(x, 1, n). You can see this as an R-side
(vector) solution of the mod_iterate macro in arithmetic.c
message("a simple example")
#> a simple example
repfromto(0:9, 11, 20)
#> [1] 0 1 2 3 4 5 6 7 8 9