powered by
The bc_strrep() method is a broadcasted form of strrep.
bc_strrep()
bc_strrep(x, y, ...)# S4 method for ANY bc_strrep(x, y)
# S4 method for ANY bc_strrep(x, y)
A character array as a result of the broadcasted repetition operation.
vector/array of type character.
character
vector/array of type integer.
integer
further arguments passed to or from methods.
x <- array(sample(month.abb), c(10, 2)) y <- array(sample(1:10), c(10, 2, 3)) print(x) print(y) bc_strrep(x, y)
Run the code above in your browser using DataLab