Talk:R Programming/Text Processing

How to read txt file into R with fixed width and column?

1. Ignore the ordinal numbers from 1 to 11 2. Read data point from 6 to 19 3. Name each column with item 1 to item 14 4 Compare the value from column 6 to 19 with key file, which is dichotomous values.

The final dataset would i

Original 1 24231143143524  2 24332341321313   3 14221244121231   4 34121132325352   5 34332141121311   6 34123241321111   7 34241241121212   8 24131232144423   9 34142232341121  10 34141345124232  11 44242441141411

Processed Item 1 Item 2 Item 3. . . Item 14 0      1        0   . . .    1