ExtractCommonPrefixFromLabels: Extract shortened labels with common prefix removed

View source: R/utilities.R

ExtractCommonPrefixFromLabelsR Documentation

Extract shortened labels with common prefix removed

Description

Returns the common prefix of a vector of labels.

Usage

ExtractCommonPrefixFromLabels(data, tidy = TRUE)

Arguments

data

data containing labels; see Labels

tidy

logical; if TRUE the returned labels are also trimmed of whitespace and have first letter capitalized

Value

A list with components

  • common.prefix - The common prefix shared among the labels, or NA if none exists

  • shortened.labels - vector of labels with the common prefix removed.

See Also

ExtractCommonPrefix, Labels, TidyLabels


Displayr/flipFormat documentation built on Aug. 28, 2024, 6:48 p.m.