Skip to content
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

fread should distinguish between quoted and unquoted empty strings #2217

Closed
st-pasha opened this issue Jun 22, 2017 · 0 comments
Closed

fread should distinguish between quoted and unquoted empty strings #2217

st-pasha opened this issue Jun 22, 2017 · 0 comments

Comments

@st-pasha
Copy link
Contributor

See #2214

For a file like this:

A,B
1,"foo"
2,
3,""

the B column should be understood as c("foo", NA, ""), not c("foo", "", "") or c("foo", NA, NA).

The proposed mechanism is the following: make 2 "string" types. The first type (default) reads empty fields as empty strings. However this type fails to recognize field "" as valid input and instead type-bumps. The second type treats empty field as NA and "" as an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants