I have data that I would like to analyze in R with the following format: *,M1,,M2, *,S1,S2,S1,S2, p1,m1s1v1,m1s2v1,m2s1v1,m2s2v1 p2,m1s1v2,m1s2v2,m2s1v2,m2s2v2 ......,...,...,..., so I have a method M1 and M2 and each of these have attributes that I would like to analyze for the different problems p1,p2... So I would like to read the table and get some kind of summary like, For method M1 the average on S1 is ... The avererage on S2 is ... and the same thing for method M2. I tried reading using the cvs reading function but it doesn't work the way I want. [[alternative HTML version deleted]]