lines = 'Number_of_Infected_Plants Number_of_Quadrats 0 38 1 57 2 68 3 47 4 23 5 9 6 10 7 7 8 3 9 4 10 2 11 1 12 1 13 0' con = textConnection(lines) DF = read.table(con, header=TRUE) close(con)