commonPrefix: Determine the length of the a common prefix between two...

View source: R/suffixTrees.R

commonPrefixR Documentation

Determine the length of the a common prefix between two strings. For example: Banana and Band have a common prefix of length 3.

Description

Determine the length of the a common prefix between two strings. For example: Banana and Band have a common prefix of length 3.

Usage

commonPrefix(x, y, wildcard = NULL)

Arguments

x

first string

y

second string

wildcard

a wildcard character that always counts as a match or NULL to disable. Default: NULL

Value

the length of the common prefix


jweile/yogiseq documentation built on July 8, 2022, 12:48 a.m.