Skip to content
Prev 307418 / 398506 Next

Convert COLON separated format

If you want something that is fast, read the file in, strip off the
colon/data, write it out to a temp and then read it back in.  Here is
a 355K line file:
[1] 355212
user  system elapsed
   0.72    0.00    0.74
[1] "1  5  27  345" "1  5  27  345" "1  5  27  345" "1  5  27  345" "1
 5  27  345" "1  5  27  345"
user  system elapsed
   1.08    0.02    1.13
[1] 355212      4
V1 V2 V3  V4
1  1  5 27 345
2  1  5 27 345
3  1  5 27 345
4  1  5 27 345
5  1  5 27 345
6  1  5 27 345
On Tue, Oct 9, 2012 at 12:56 AM, Noah Silverman <noahsilverman at ucla.edu> wrote: