Learn R Programming

egor (version 1.24.2)

common_prefix: Longest common prefix of a set of strings.

Description

Longest common prefix of a set of strings.

Usage

common_prefix(x)

Value

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

Arguments

x

a character vector.