trim_prefix {volker}R Documentation

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)

Arguments

x

A character vector.

prefix

The prefix. Set to TRUE to first extract the prefix.

Value

The trimmed character vector.


[Package volker version 2.1.0 Index]