Re: [R] vectorize data string analysis

2015-03-03 Thread John McKown
Have you looked at readChar() ? You can use it to read your input file in undelimited chunks of 220 bytes, and at the same time, parse into variable. Look at the example in the help ?readChar. Unfortunately I can't really see exactly how the columns break, but I have your data in a file: x.data in

[R] vectorize data string analysis

2015-03-02 Thread Glenn Schultz
Hello All, I have to admit that I am not that good when it comes to vectorizing a function.  I need some insight.  Is the below a case where vectorization can be accomplished to improve speed? Below the function a sample data - as you can see it is not delimited.  However, the record length i