So I've got the following dataframe, datafr.
X1 X2 X1.1 X2.1
Composite Element Composite Element
14-3-3_epsilon-M-C -0.8660101895 14-3-3_epsilon-M-C -0.6814387425
4E-BP1_pS65-R-V 0.1056560215 4E-BP1_pS65-R-V 0.1787506005
4E-BP1_pT37T46-R-V 0.6408257495 4E-BP1_pT37T46-R-V -0.7485933875
4E-BP1_pT70-R-C 0.6413568085 4E-BP1_pT70-R-C 0.9554481415
I want to make the second row the column names, so I look at the row
datafr[1,]
and everything is as it should be
X1 X2 X1.1 X2.1
Composite Element Composite Element
However, when I convert this to a character vector I get the words changing to numbers...
as.character(c(datafr[1,]))
[1] "49" "161" "49" "161"
What is going on?