trim_prefix: Remove a prefix from a character vector
Description
If the resulting character would be empty,
the prefix is returned. At the end, all items
in the vector are trimmed using trim_label.
Usage
trim_prefix(x, prefix = TRUE)
Value
The trimmed character vector.
Arguments
- x
A character vector.
- prefix
The prefix. Set to TRUE to first extract the prefix.