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-Forge #4992] Using sep = "." in fread yields "unexpected character" error #502

Closed
arunsrinivasan opened this issue Jun 8, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@arunsrinivasan
Copy link
Member

Submitted by: Ananda Mahto; Assigned to: Nobody; R-Forge link

When trying to read data separated by a ., fread yields an error with consecutive numeric values, for example:

library(data.table)
packageVersion("data.table")
# [1] ‘1.8.10y <- paste("192.168.1.", 1:10, sep = "")
notworking <- tempfile()
writeLines(y, notworking)
fread(notworking, sep = ".", header = FALSE)

The following examples work:

z1 <- paste("192. 168. 1. ", 1:10, sep = "")
working1 <- tempfile()
writeLines(z1, working1)
fread(working1, sep = ".", header = FALSE)

z2 <- paste("Hz.BB.GHG.", 1:10, sep = "")
working2 <- tempfile()
writeLines(z2, working2)
fread(working2, sep = ".", header = FALSE)

See this SO post.

@mattdowle mattdowle added this to the v1.9.6 milestone Oct 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants