filter_names: Filters a vector of names and returns the shortest common...

Description Usage Arguments Value

View source: R/filter_functions.R

Description

Filters a vector of names and returns the shortest common prefix.

Usage

1
filter_names(names, by = "[_():]|[^_():]*")

Arguments

names

The vector of names to filter.

by

A regexp that splits the string. The default filters by special characters. A split by character can be achieved by using "." as the regexp.

Value

The names shortened to the shortest prefix (in chunks defined by the regexp) where all names are unique.


MultIS documentation built on Aug. 6, 2021, 5:07 p.m.