Re: [R] parsing a complex file

2016-08-27 Thread jim holtman
It is not clear as to how you want to parse the file. You need to at least provide an example of what you expect from the output. You mention " the detail which begins with 2 at byte location 1 to another file"; I don't see the '2' at byte location 1. Jim Holtman Data Munger Guru What is the p

[R] parsing a complex file

2016-08-27 Thread Glenn Schultz
All, I have a complex file I would like to parse in R a sample is described below The header is 1:200 and the detail is 1 to 200.  I have written code to parse the file so far.  As follows: numchar <- nchar(x = data, type = "chars") start <- c(seq(1, numchar, 398)) end <- c(seq(398, numchar, 3