Converting text file into data frame in R
My raw data is in a text file with no particular delimiters between the values, like so: 101 10.08 S A 05OCT93 GOLDEN GATE BRIDGE 4110 6548 6404 55930 Applying read.table in R creates a data frame with only one variable per row, whereas I would like a data frame with 10 variables per row (one for each of the 10 values). How can I achieve this if there is no delimiter in the text file? We assume that each field consist of non-spaces except for field 6 which may have embedded spaces. Create test file Lines <- "101 10.08 S A 05OCT93 GOLDEN GATE BRIDGE 4110 6548 6404 55930 101 10.08 S A 05OCT93