str_dup: Duplicate and concatenate strings within a character vector

View source: R/str_dup.R

str_dupR Documentation

Duplicate and concatenate strings within a character vector

Description

Dependency-free drop-in alternative for stringr::str_dup().

Usage

str_dup(string, times)

Arguments

string

Input character vector.

times

Number of times to duplicate each string.

Value

A character vector.

Source

Adapted from the stringr package.


stringstatic documentation built on July 26, 2023, 5:32 p.m.