Section 12.4.1, "Logical summaries", says the following about any() and all():
Like all summary functions, they'll return NA if there are any missing values present [...].
This doesn't seem right because any instance of TRUE or FALSE, respectively, will make these functions return non-NA values, even if NA elements are present. This behavior follows from any() and all()'s relationship to the binary logical operators, as explained in the same paragraph.
Section 12.4.1, "Logical summaries", says the following about
any()
andall()
:This doesn't seem right because any instance of
TRUE
orFALSE
, respectively, will make these functions return non-NA
values, even ifNA
elements are present. This behavior follows fromany()
andall()
's relationship to the binary logical operators, as explained in the same paragraph.Created on 2023-11-27 with reprex v2.0.2