rep methods, and rep2 methods, functions similar to rep_len.
# S3 method for ObjectArray
rep(x, n=1, …, each=1, times=n)
# S3 method for ImageArray
rep(x, n=1, …, each=1, times=n)
# S3 method for GeomArray
rep(x, n=1, …, each=1, times=n)
# S3 method for MatrixArray
rep(x, n=1, …, each=1, times=n)# S3 method for ObjectArray
rep2(v, n, …, n.out=n)
# S3 method for GeomArray
rep2(v, n, …, n.out=n)
# S3 method for ImageArray
rep2(v, n, …, n.out=n)
# S3 method for MatrixArray
rep2(v, n, …, n.out=n)
A one-dimensional ObjectArray (incl subclasses).
Default value for n.out and times, see below.
Integer, the number of times, each element is repeated, consecutively.
Integer, the number of times, the sequence is repeated, periodically.
Integer, the length of the output object.
Ignored.
A new one-dimensional ImageArray, ObjectArray, GeomArray or MatrixArray object.
# NOT RUN {
rep (eq.brot2 (4), 10)
# }
Run the code above in your browser using DataLab