Created
October 17, 2014 03:01
-
-
Save wush978/93c0f96b68f529678e2d to your computer and use it in GitHub Desktop.
decompress bzfile and remove null string and read in fread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fread(sprintf("bzcat %s | tr -d '\\000'", filename)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May I ask why it would work if on Linux? (see stackoverflow answer: http://stackoverflow.com/questions/25948777/extract-bz2-file-in-r#) I don't really understand what the regex does and what's the purpose...?