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 May 25, 2019, 1:36 p.m.