filter_names {MultIS}R Documentation

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

Description

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

Usage

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.


[Package MultIS version 0.6.2 Index]