powered by
rep2abI(x, times) conceptually computes rep.int(x, times) but with an '>abIndex class result.
rep2abI(x, times)
rep.int(x, times)
'>abIndex
numeric vector
integer (valued) scalar: the number of repetitions
a vector of class '>abIndex
class
rep.int(), the base function; abIseq, '>abIndex.
rep.int()
abIseq
# NOT RUN { (ab <- rep2abI(2:7, 4)) stopifnot(identical(as(ab, "numeric"), rep(2:7, 4))) # }
Run the code above in your browser using DataLab