LCSn: Find longest common substring from 'n' strings.

Description Usage Arguments Value Examples

View source: R/fcn_misc.R

Description

Warning: heuristic! This is not guaranteed to find the best solution, since its done pairwise with the shortest input string as reference.

Usage

1
LCSn(strings, min_LCS_length = 0)

Arguments

strings

A vector of strings in which to search for LCS

min_LCS_length

Minimum length expected. Empty string is returned if the result is shorter

Value

longest common substring (or "" if shorter than min_LCS_length)

Examples

1
LCSn(c("1_abcde...", "2_abcd...", "x_abc..."))  ## result: "_abc"

PTXQC documentation built on Feb. 9, 2018, 6:08 a.m.