Jump to content

Talk:R Programming/Text Processing

Page contents not supported in other languages.
Add topic
From Wikibooks, open books for an open world

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

Start a discussion about R Programming/Text Processing

Start a discussion