hi, I have a data frame with 6 variables: Date,A,B,C,D,E.
Often, dates are repeated two or three times (in two or three rows) in which for example there are values for variables A and B in one row, values for C and D in a second row and values for variable E in a third row....how to code in order to get all five values (for each variable in a single row) ? thank you very much !!!!
Date | A | B | C | D | E |
---|---|---|---|---|---|
21/09/2015 | 1 | 5 | |||
21/09/2015 | 2 | 4 | |||
21/09/2015 | 7 | ||||
22/09/2015 | 7 | 6 | 2 | ||
22/09/2015 | 9 | 1 |