Logical
Logical Operators
Logical Operators
Examples
IDs <- which(v > 10)
idx = is.na(..) # find NA's; idx is logical index vector
!idx # not ... (invert logicals of idx)
idx = !is.na(..) # both together
is.finite - (elements not infinite and not missing)
is.finite(..)