get_prefix {DEP} | R Documentation |
get_prefix
returns the longest common prefix
of the supplied words.
get_prefix(words)
words |
Character vector, A list of words. |
A character vector containing the prefix.
# Load example data <- UbiLength columns <- grep("LFQ.", colnames(data)) # Get prefix names <- colnames(data[, columns]) get_prefix(names)