rep(x, times = <<see below>>, length.out = <<see below>>)
At least one of times and length.out must be given.
rep(0, 100) # 100 zeros# 1, 2, 3, 4 repeated until there are 48 numbers rep(1:4, length.out = 48)
rep(1:10, 10) # 10 repetitions of 1:10 rep(1:10, 1:10) # 1, 2, 2, 3, 3, 3, ...