HI all How to add row names at the end of the record after transposing a matrix Sample code Data = read.table("set_a_2.txt",header = TRUE, sep = "\t") Data.T <- t(Data[,0:ncol(fooData)]) write.table(Data.T, file ="set_a_2_format.tab",row.names = TRUE, col.names = TRUE, quote = FALSE) example of Transposed matrix class rs1 rs2 rs3 rs4 rs5 LG_1 BB AB BB BB BB LG_2 BB AA BB BB BB LG_3 BB BB AB AB BB LG_4 AA BB BB BB BB LG_5 BB AB BB BB BB how can i add row headers (LG_1) at the end of rows also Regards, Ankush Sharma [[alternative HTML version deleted]]