View source: R/general_utils.R
longest_common_prefix | R Documentation |
Find the longest common prefix between 2 random names. If no common prefix is found the same input values are returned.
longest_common_prefix(names, uniquify = TRUE, verbose = TRUE)
names |
A character vector with length higher than 1. |
uniquify |
Logical, should |
verbose |
Logical, print common prefix found. |
A character vector without common prefix that is the same length as the input.
new_names <- longest_common_prefix(names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.