powered by
Remove a prefix and suffix from an id
idParseAffixes(id, split = "X|-")
A string to remove a prefix and suffix from.
A regular expression to use for splitting the prefix and suffix from the id.
A named vector, with prefix, id, and suffix returned in that order.
# NOT RUN { idParseAffixes(idAddAffixes("group1", "example", 1)) # }
Run the code above in your browser using DataLab