I have a list of data frames that X has attached in the column names. I want to remove them for column names
name(df)
"X11.1.40.2" "X11.1.40.3" "X11.1.50.19" "X11.1.51.6" "X11.13.30.6" "X11.5.100.2" "X11.5.100.3"
I have a list of data frames that X has attached in the column names. I want to remove them for column names
name(df)
"X11.1.40.2" "X11.1.40.3" "X11.1.50.19" "X11.1.51.6" "X11.13.30.6" "X11.5.100.2" "X11.5.100.3"
It was added for a reason: a correct column name should not start with a number. Here it looks like you should pivot_longer()
your data frames so that the date becomes its own data column (and the result follows the principle that column names describe the data, but the actual data is in the data frame).
Is this what you meant with "transpose" in your other question?
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.