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
Hi
Not sure what you exactly want but some comments in line
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of Ankush Sharma
Sent: Wednesday, March 19, 2014 11:36 AM
To: r-help@r-project.org
Subject: [R] Row names at the end of
Is this what you're trying to do?
mtrx - structure(c(BB, AB, BB, BB, BB, BB, AA, BB,
BB,
BB, BB, BB, AB, AB, BB, AA, BB,
BB, BB, BB,
BB, AB, BB, BB, BB), .Dim = c(5L, 5L),
.Dimnames = list(
c(rs1, rs2, rs3, rs4, rs5), c(LG_1,
3 matches
Mail list logo