common_prefix {egor}R Documentation

Longest common prefix of a set of strings.

Description

Longest common prefix of a set of strings.

Usage

common_prefix(x)

Arguments

x

a character vector.

Value

A character vector that is the longest common substring at the start of each of the input vectors.


[Package egor version 1.24.2 Index]