comparison_subset {inops}R Documentation

Subsetting Values by Comparison

Description

Operators for subsetting values using the standard comparison operators.

Usage

x %[>=% y

x %[>% y

x %[<=% y

x %[<% y

x %[==% y

x %[!=% y

Arguments

x

first element of the operation.

y

second element of the operation.

Value

elements of x matched by the used comparison.

See Also

`==`

Examples

ages <- c(130, 10, 21, 39, 74, -2, 0)
ages %[<% 5

letters %[==% "a"

letters %[!=% "a"


[Package inops version 0.0.1 Index]