Logic {disordR} | R 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
|
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 todisord_logic_disord()
- Logic
signature(e1="disord", e2="ANY")
: Dispatched todisord_logic_any()
- Logic
signature(e1="ANY", e2="disord")
: Dispatched toany_logic_disord()
Author(s)
Robin K. S. Hankin
Examples
a <- disord(1:7)
l <- a>3
sum(l)
any(l)
all(l | !l)
[Package disordR version 0.9-8.2 Index]