Dear all, I have read in a table using read.table(). The data frame looks like this: > my_table V1 V2 1 3 320 2 2 230 3 3 300 4 2 220 5 3 320 6 2 210 7 freq size 8 0 0 9 2 220 10 2 210 11 2 220 12 1 110 13 2 240 14 1 110 I then remove the duplicate lines with unique(my_table) and get this: V1 V2 1 3 320 2 2 230 3 3 300 4 2 220 6 2 210 7 freq size 8 0 0 12 1 110 13 2 240 I have two questions: 1. what is the purpose of the numbers on the LHS, and how can I reorder them so that they read in ascending order? 2. how can I extract the line "freq size" and make it the column names? TIA Jab. --------------------------------- [[alternative HTML version deleted]]