Learn R Programming

lintr (version 3.0.2)

any_is_na_linter: Require usage of anyNA over any(is.na(.))

Description

anyNA() exists as a replacement for any(is.na(.)) which is more efficient for simple objects, and in the worst case is the same efficiency. Therefore it should be used in all situations instead of the latter.

Usage

any_is_na_linter()

Arguments

Tags

best_practices, efficiency

See Also

linters for a complete list of linters available in lintr.