Skip to content

Multiple strings for missing values #125

Closed

Description

@TonyLadson

I'm working on files that use many different strings to specify missing values e.g. "" (blank), NA, na, nr, nd. read_csv seems to only allow a single string.

read_csv("x,y\n1,2\n3,4\nna,NA", na = c('NA','na'))
Error: expecting a single value

It would be great if I could include multiple strings in the specification of missing values.

Thank you for all your work on readr. It is very fast.

Activity

  1. rpruim commented on May 8, 2015

    @rpruim

    I'll second this motion.

  2. hadley commented on May 11, 2015

    @hadley
    Member

    (This is the flip side of #114)

  3. jennybc commented on May 23, 2015

    @jennybc
    Member

    👍

  4. mdlincoln commented on Jun 2, 2015

    @mdlincoln

    👍 on this, and again on #114 😄

  5. locked and limited conversation to collaborators on Sep 25, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions