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 #5610] fread: handle multiple whitespace as delimiter #529

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

Comments

@arunsrinivasan
Copy link
Member

Submitted by: Matthew Forrest; Assigned to: Nobody; R-Forge link

This has come up in forums a couple of times. Basically it would be fantastic to be able to use sep="" in fread to use multiple whitespaces as the separator analogously to how it works in read.table. Sometimes one cannot get away from data files which have multiple spaces as column separators to make it easy for humans to read, but not so much for fread!

I know it is on Matt Dowle's radar since this stackoverflow post (which also has a handy workaround)

http://stackoverflow.com/questions/22229109/r-data-table-fread-command-how-to-read-large-files-with-irregular-separators

but I thought I would formalise it into a feature request here. Also, thanks for data.table, it is great!

@arunsrinivasan
Copy link
Member Author

Fixed in devel. Please upgrade and test.

@skanskan
Copy link

Hello.
What about handling mixed separators as if they where just one?
for example sometimes the file has tabs and spaces.

@complexgenome
Copy link

for example sometimes the file has tabs and spaces.

Is there a way this could be achieved in data.table? data.table_1.13.0 and R4.0
thanks

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

3 participants