is.subset: Check subset inclusion

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/is.subset.R

Description

Determines whether one vector contains all the elements of another.

Usage

1
is.subset(x, y)

Arguments

x

vector.

y

vector.

Details

Determines whether or not every element of x is also found in y. Returns TRUE if so, and FALSE if not.

Value

A logical of length 1.

Author(s)

Robin Evans

See Also

setmatch.

Examples

1
2
is.subset(1:2, 1:3)
is.subset(1:2, 2:3)

rje42/rje documentation built on Aug. 15, 2017, 7:43 a.m.