Displaying 1 result from an estimated 1 matches for "chvector1".
Did you mean:
chvector2
2002 Nov 04
3
write table and dinnames
...xt file a table like this one:
TAB colname1 TAB colname2 TAB TAB... colnameN
rowname1 # # #
rowname2 # # #
rownameM # # #
then I wrote something like:
mymatrix <- matrix(nrow=M,ncol=N,byrow=T)
rownames(mymatrix) <- chvector1
colnames(mymatrix) <- chvector2
write.table(mymatrix,file=myfile,sep="\t").
But I obtained:
colname1 TAB colname2 TAB TAB... colnameN
rowname1 # # #
rowname2 # # #
rownameM # # #
How to put in first column...