index_duplicate: Duplicate strings with indices

View source: R/index_duplicate.R

index_duplicateR Documentation

Duplicate strings with indices

Description

Repeat strings in a vector and append an index to each repeat.

Usage

index_duplicate(x, n)

Arguments

x

A vector of strings

n

A vector of numbers of times each string is to be repeated

Value

A vector of strings


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.