charSeq: Generate a squence of string with prefix and suffix

Description Usage Arguments Value Examples

View source: R/stringManipulation.R

Description

This function generate a sequence of string like: prefix001, prefix002, prefix003 ... prefix999

Usage

1
charSeq(prefix = "", from, to, by = 1, suffix = "")

Arguments

prefix

prefix of the sequence

from, to

the starting and (maximal) end values of the sequence

by

number: increment of the sequence.

suffix

suffix of the sequence

Value

character vector

Examples

1
2
charSeq(prefix = "id", from = 1, to = 10)
charSeq(prefix = "H-", from = 10, to = 0, by = -1, suffix = "s")

juliendiot42/rjdiotperso documentation built on Jan. 8, 2020, 3:38 p.m.