Skip to contents

Setwise Difference Between chars Objects

Usage

# S3 method for class 'chars'
setdiff(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 difference of x and y.

Examples

setdiff(chars("javascript"), chars("script"))
#> [1] "jav"