diff --git a/logicals.qmd b/logicals.qmd index 62a2e1590..fcd2555cf 100644 --- a/logicals.qmd +++ b/logicals.qmd @@ -246,7 +246,8 @@ A missing value in a logical vector means that the value could either be `TRUE` `TRUE | TRUE` and `FALSE | TRUE` are both `TRUE` because at least one of them is `TRUE`. `NA | TRUE` must also be `TRUE` because `NA` can either be `TRUE` or `FALSE`. However, `NA | FALSE` is `NA` because we don't know if `NA` is `TRUE` or `FALSE`. -Similar reasoning applies with `NA & FALSE`. +Similar reasoning applies for `&` considering that both conditions must be fulfilled. +Therefore `NA & TRUE` is `NA` because `NA` can either be `TRUE` or `FALSE` and `NA & FALSE` is `FALSE` because at least one of the conditions is `FALSE`. ### Order of operations {#sec-order-operations-boolean}