I have an excel data as follows:
As you can see, the excel file contains 4 data entries (month, X, Y , Z) all of them are stacked in one column (A). I am interested to create a program in R which can automatically separate the data from each other and finally generate a matrix that contains 4 columns (month, X, Y , Z) and three lines of their corresponding values. For example, the matrix
M = [March, 12, 15, 44;
April, 33, 34, 21;
June, 44, 66, 33].
Else, is there any other solution (for example generate automatically a txt.file or a new excel file that can solve this problem and put all the data in one column each?
I have started writing the R code, but as I am new in R, so I am blocked. I am also not an Excel expert.
Any help will be very appreciated
