Learn R Programming

webdeveloper (version 1.0.5)

idAddAffixes: 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 = "-")

Value

A string.

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.

Examples

Run this code
idAddAffixes("group1", "example", 1)

Run the code above in your browser using DataLab