View source: R/general_utils.R
longest_most_abundant_common_suffix | R Documentation |
Find longest and most abundant common suffix
longest_most_abundant_common_suffix(
x,
k = 80,
max_suffixes = 4,
ignore.case = FALSE,
verbose = FALSE
)
x |
A character vector |
k |
An integer between 1 and 99. How much more abundant should the first suffix be relative to the second most abundant suffix? |
max_suffixes |
An integer. If there are more than |
ignore.case |
Logical. Convert all |
verbose |
Logical. Print out info. |
A character corresponding to the longest common suffix.
sample_names <- c("A_sample1", "B_sample1", "C_sample1", "D_sample2", "E_sample2")
longest_most_abundant_common_suffix(x = sample_names)
# Returns: "_sample1"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.