powered by
Takes a list of character vectors and returns the longest vector of strings that is common to the ends of all of the components in the list.
commontail(x)
list of character vectors.
a character vector containing the common elements of the tails of all the components in x. The result is NULL if there are no common elements.
x
NULL
This is useful to get the class that is common to a number of objects.
S Poetry, Patrick J. Burns
inherits, intersect
inherits
intersect
# NOT RUN { commontail(list(c("subA", "cls1"), c("subB", "subA", "cls1"))) commontail(list(c("subA", "cls2"), c("subB", "subA", "cls1"))) # }
Run the code above in your browser using DataLab