Creating repeatative objects :
> rep(3,6) # [repeats 3 six times] [1] 3 3 3 3 3 3 > rep(1:3,4:6) [1] 1 1 1 1 2 2 2 2 2 3 3 3 3 3 3 > rep(c(1,3,2),length=20) [1] 1 3 2 1 3 2 1 3 2 1 3 2 1 3 2 1 3 2 1 3
Back to Index page