ExtractCommonPrefix: 'RemoveParentName'

View source: R/utilities.R

ExtractCommonPrefixR Documentation

RemoveParentName

Description

ExtractCommonPrefix

Usage

ExtractCommonPrefix(labels)

Arguments

labels

A vector of labels from which we plan to extract a common prefix.

Details

Returns the common prefix of a vector of labels.

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.


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