http://r.789695.n4.nabble.com/file/n3989638/tab3.gif i want to create a dataframe like the one given in the pictures having names of sub categories of columns. the table may be presented either in the console or in an excel sheet. anyone please suggest me a technique. thanks in advance. -atanu -- View this message in context: http://r.789695.n4.nabble.com/formatting-a-dataframe-tp3989638p3989638.html Sent from the R help mailing list archive at Nabble.com.