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.


NumbersInternational/flipFormat documentation built on Feb. 26, 2024, 5:36 a.m.