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

\r newlines are squashed in a single-column file #2542

Closed
st-pasha opened this issue Dec 30, 2017 · 0 comments
Closed

\r newlines are squashed in a single-column file #2542

st-pasha opened this issue Dec 30, 2017 · 0 comments
Milestone

Comments

@st-pasha
Copy link
Contributor

> fread("A\r1\r\r\r2\r")
   A
1: 1
2: 2
> fread("A\n1\n\n\n2\n")
    A
1:  1
2: NA
3: NA
4:  2

Both examples should produce identical results (4-row DT), however in the first case all \rs are squashed and as a result NA values in the file disappear.

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

1 participant