lines = 'City Peak_Wind_Gust Number_of_Damaged_Homes A 0.98 25.000 B 0.74 0.950 C 1.12 200.000 D 1.34 150.000 E 0.87 0.940 F 0.65 0.090 G 1.39 260.000' con = textConnection( lines ) DF = read.table( con, header=TRUE ) close(con)