logic: Logical operations

LogicR Documentation

Logical operations

Description

Logical operations including low-level helper functions

Usage

disord_logical_negate(x)
disord_logic_disord(e1,e2)
disord_logic_any(e1,e2)
any_logic_disord(e1,e2)

Arguments

e1, e2, x

Formal arguments for S4 dispatch: logical disord object

Details

Basic low-level logical operations, intended to be called from S4 dispatch.

These functions return a logical disord object. appropriate. Consistency is required. The hash is set to be that of the disord object if appropriate.

Value

Return a disord object or logical

Methods

Logic

signature(e1="disord", e2="disord"): Dispatched to disord_logic_disord()

Logic

signature(e1="disord", e2="ANY"): Dispatched to disord_logic_any()

Logic

signature(e1="ANY", e2="disord"): Dispatched to any_logic_disord()

Author(s)

Robin K. S. Hankin

Examples


a <- disord(1:7)
l <- a>3
sum(l)
any(l)
all(l | !l)


disordR documentation built on May 29, 2024, 11:06 a.m.