bc_strrep: Broadcasted strrep

bc_strrepR Documentation

Broadcasted strrep

Description

The bc_strrep() method is a broadcasted form of strrep.

Usage

bc_strrep(x, y, ...)

## S4 method for signature 'ANY'
bc_strrep(x, y)

Arguments

x

vector/array of type character.

y

vector/array of type integer.

...

further arguments passed to or from methods.

Value

A character array as a result of the broadcasted repetition operation.

Examples


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)

broadcast documentation built on Aug. 20, 2026, 9:08 a.m.