Skip to content

x == NA instead of is.na(x) #143

Closed
Closed

Description

@jabranham

It would be useful to have a linter that checks for x == NA where I meant to write is.na(x). Is that possible?

Activity

  1. jimhester commented on May 4, 2016

    @jimhester
    Member

    It is definitely possible and probably correct in most cases. Can you think of any cases where you actually would want to use x == NA instead of is.na(x)?

  2. jabranham commented on May 4, 2016

    @jabranham
    ContributorAuthor

    I can't - x==NA will just return NAs for all values of x. That doesn't seem helpful to me.

  3. added
    feature
    and removed on May 17, 2018
  4. added 3 commits that reference this issue on Jun 7, 2018
    6298f88
    b5cadef
    f1d9cc1
  5. added a commit that references this issue on Jun 14, 2018
    bee2f34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions