Read csv with two headers into a data.frame
问题 Apologies for the seemingly simple question, but I can't seem to find a solution to the following re-arrangement problem. I'm used to using read.csv to read in files with a header row, but I have an excel spreadsheet with two 'header' rows - cell identifier (a, b, c ... g) and three sets of measurements (x, y and z; 1000s each) for each cell: a b x y z x y z 10 1 5 22 1 6 12 2 6 21 3 5 12 2 7 11 3 7 13 1 4 33 2 8 12 2 5 44 1 9 csv file below: a,,,b,, x,y,z,x,y,z 10,1,5,22,1,6 12,2,6,21,3,5 12