Skip to content
Prev 273237 / 398506 Next

Returning vector of values shared across 3 vectors?

On 10/1/2011 3:03 AM, jim holtman wrote:
Or if your real problem may go to more vec's and you don't want to keep 
nesting the calls:

Reduce(intersect, list(vec1, vec2, vec3))
# [1]  4  5  6  7  8  9 10 11 12 52