overlap: Overlap function

Description Usage Arguments Author(s) Examples

Description

This function finds the overlap between two character vectors

Usage

1
overlap(vector1, vector2)

Arguments

vector1

the first character vector

vector2

the second character vector

Author(s)

Michael C. Saul

Examples

1
2
3
4
x = c("one", "two", "three", "four", "five")
y = c("two", "four", "six", "eight", "ten")
# should return c("two", "four")
overlap(x,y)

msaul/msaul documentation built on May 23, 2019, 7:50 a.m.