Description Usage Arguments Value Examples
Find the longest common substring between elements of a character vector
1 | find_lcsubstr(string, n_min = 1, n_max = NULL, trace = TRUE)
|
string |
a character vector. |
n_min |
integer. Minimum common substring length to find. |
n_max |
integer. Maximum common substring length to find. Default ( |
trace |
logical. Should the result be printed in the console ? |
a character vector with the longest common substring(s)
1 2 3 4 | st1 <- "Here is a first string for the example, how original !"
st2 <- "Here a second string for the example too."
st3 <- "Here is a third string for the example, as original as the others."
find_lcsubstr(string = c(st1, st2, st3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.