powered by
Get common prefix of a string vector
common_prefix(x)
A string that is the common prefix of the input vector.
A string vector.
common_prefix(c("Q1_a", "Q1_b", "Q1_c"))
Run the code above in your browser using DataLab