idAddAffixes: Add a prefix and suffix to an id

View source: R/webdeveloper.R

idAddAffixesR Documentation

Add a prefix and suffix to an id

Description

Add a prefix and suffix to an id

Usage

idAddAffixes(prefix, id, suffix, prefix_sep = "X", suffix_sep = "-")

Arguments

prefix

A string, the prefix to add.

id

A string to add a prefix and suffix to.

suffix

A string, the suffix to add.

prefix_sep

A string, the prefix separator to use. This should be different than suffix_sep.

suffix_sep

A string, the suffix separator to use. This should be different than prefix_sep.

Value

A string.

Examples

idAddAffixes("group1", "example", 1)

webdeveloper documentation built on Oct. 18, 2022, 9:06 a.m.