powered by
Warning: heuristic! This is not guaranteed to find the best solution, since its done pairwise with the shortest input string as reference.
LCSn(strings, min_LCS_length = 0)
A vector of strings in which to search for LCS
Minimum length expected. Empty string is returned if the result is shorter
longest common substring (or "" if shorter than min_LCS_length)
min_LCS_length
# NOT RUN { LCSn(c("1_abcde...", "2_abcd...", "x_abc...")) ## result: "_abc" # }
Run the code above in your browser using DataLab