Skip to contents

Setwise Intersection of chars Objects

Usage

# S3 method for class 'chars'
intersect(x, y, ...)

Arguments

x

a chars object.

y

a chars object or character vector.

...

further arguments passed to or from other methods.

Value

the setwise intersection of x and y.

Examples

union(chars("pine"), chars("apple"))
#> [1] "pineal"