a data.frame in R like
column1 column2
rowname1 0.1 0.3
rowname2 0.4 0.2
rowname3 0.5 0.1
How can I extract the second column with the rowname remained?
column2
rowname1 0.3
rowname2 0.2
rowname3 0.1
thanks.
【在 G***G 的大作中提到】 : a data.frame in R like : column1 column2 : rowname1 0.1 0.3 : rowname2 0.4 0.2 : rowname3 0.5 0.1 : How can I extract the second column with the rowname remained? : column2 : rowname1 0.3 : rowname2 0.2 : rowname3 0.1