Generating a logical vector (7)
either by doing (vectorized) comparisons (see before)
or by combining logical vectors or comparisons = boolean algebra
- operators:
&
,|
,!
,xor()
{magrittr}
(through{dplyr}
) provides the aliasesand()
,or()
,not()
In numerical operations,FALSE
is 0 andTRUE
is 1. Therefore:&
can be mimicked bypmin()
|
can be mimicked bypmax()
- operators: