I have a list of vectors with character strings:
lst <- list(v1 = c("A", "B", "C", "D"), v2 = c("B", "C", "D", "E"), v3 = c("C", "D", "E", "F")
How can I get a new vector that includes only those character strings that intersect each vector. E.g. in this case
out <- c("C", "D")
A solution with lapply
would be great.