Learn R Programming

inops (version 0.0.1)

comparison_subset: Subsetting Values by Comparison

Description

Operators for subsetting values using the standard comparison operators.

Usage

x %[>=% y

x %[>% y

x %[<=% y<="" p="">

x %[<% y<="" p="">

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

Run this code
# NOT RUN {
ages <- c(130, 10, 21, 39, 74, -2, 0)
ages %[<% 5

letters %[==% "a"

letters %[!=% "a"

# }

Run the code above in your browser using DataLab