longest_substring: Find Longest Common Substring

Description Usage Arguments Value

View source: R/functions.R

Description

Find the longest common substring in two character strings. For character vectors, use longest_substring_vec.

Usage

1

Arguments

a

a character.

b

a character.

Value

Returns the longest common substring of two characters. If multiple longest substrings of equal length are found, function will return the leftmost string.


UMCUneuro/MRI documentation built on March 18, 2021, 12:32 p.m.