get_prefix.Rd
get_prefix returns the longest common prefix of the supplied words.
get_prefix
get_prefix(words)
Character vector, A list of words.
A character vector containing the prefix.
# Load example data(Silicosis_pg) data <- Silicosis_pg names <- grep("LFQ.", colnames(data), value = TRUE) # Get prefix get_prefix(names) #> [1] "LFQ.intensity."