I have a data table as above. After I read it into R, it appears as follows:
A1 V2 B1 V4 C1 V6 D1 V8
1: 0.0 0.00000000 0.0 0.00000000 0.0 0.00000000 0.0 0.00000000
2: 0.2 -0.00380627 0.2 -0.00819362 0.2 0.00111832 0.2 0.00121747
3: 0.4 -0.00331354 0.4 -0.00525695 0.4 0.00064048 0.4 -0.00192659
4: 0.6 -0.00868297 0.6 -0.01096702 0.6 -0.00173567 0.6 -0.00113128
5: 0.8 -0.01042633 0.8 -0.01036590 0.8 -0.00542573 0.8 -0.00477296
The first two columns belongs to category A1, and the second two belongs to category B1. I want to convert the columns to A1.1, A1.2, B1.1, B1.2, ... Any suggestion? Thank you so much.
