knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of {lcsubstr} is to provide a function that find the longest common substring between elements of a charcater vector
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("BenjaminLouis/lcsubstr")
library(lcsubstr) # Considering these three strings 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." # you find the lingest common substring by running : res <- 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.