I have an R data set with the following structure:
And I need a structure like this:
Is there any R package or function that allows performing this transformation easily or I must do it manually by building the new dataset with loops?
I have an R data set with the following structure:
And I need a structure like this:
Is there any R package or function that allows performing this transformation easily or I must do it manually by building the new dataset with loops?