Learn R Programming

udpipe (version 0.8.11)

txt_overlap: Get the overlap between 2 vectors

Description

Get the overlap between 2 vectors

Usage

txt_overlap(x, y)

Value

a vector with elements of x which are also found in y

Arguments

x

a vector

y

a vector

Examples

Run this code
x <- c("a", "b", "c")
y <- c("b", "c", "e", "z")
txt_overlap(x, y)
txt_overlap(y, x)

Run the code above in your browser using DataLab