lines = 'Weight Volume 17.1 16.7 10.5 10.4 13.8 13.5 15.7 15.7 11.9 11.6 10.4 10.2 15.0 14.5 16.0 15.8 17.8 17.6 15.8 15.2 15.1 14.8 12.1 11.9 18.4 18.3 17.1 16.7 16.7 16.6 16.5 15.9 15.1 15.1 15.1 14.5' con = textConnection( lines ) DF = read.table( con, header=TRUE ) close(con)