subsetOrder: Compare sets for inclusion.

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

View source: R/subsetOrder.R

Description

A wrapper for is.subset which returns set inclusions.

Usage

1

Arguments

x

A vector.

y

A vector of the same type as x.

Details

If x is a subset of y, returns -1, for the reverse returns 1. If sets are equal or incomparable, it returns 0.

Value

A single integer, 0, -1 or 1.

Author(s)

Robin Evans

See Also

is.subset.

Examples

1
2
subsetOrder(2:4, 1:4)
subsetOrder(2:4, 3:5)

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