New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple strings for missing values #125

Closed
TonyLadson opened this Issue Apr 13, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@TonyLadson
Contributor

TonyLadson commented Apr 13, 2015

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.

@rpruim

This comment has been minimized.

rpruim commented May 8, 2015

I'll second this motion.

@hadley

This comment has been minimized.

Member

hadley commented May 11, 2015

(This is the flip side of #114)

@jennybc

This comment has been minimized.

Member

jennybc commented May 23, 2015

👍

@mdlincoln

This comment has been minimized.

mdlincoln commented Jun 2, 2015

👍 on this, and again on #114 😄

@hadley hadley closed this in 6f4c9cc Jul 8, 2015

@lock lock bot locked and limited conversation to collaborators Sep 25, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.