50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


webdeveloper (version 1.0.0)

idParseAffixes: Remove a prefix and suffix from an id

Description

Remove a prefix and suffix from an id

Usage

idParseAffixes(id, split = "X|-")

Arguments

id

A string to remove a prefix and suffix from.

split

A regular expression to use for splitting the prefix and suffix from the id.

Value

A named vector, with prefix, id, and suffix returned in that order.

Examples

Run this code
# NOT RUN {
idParseAffixes(idAddAffixes("group1", "example", 1))
# }

Run the code above in your browser using DataLab