0

i have data that it look like this

enter image description here

i wanna change it to look like that with month on the top and year at the left ,i have tried with cbind but no way

enter image description here

tero17
  • 1,570
  • 1
  • 11
  • 20
  • 1
    Search for "reshape long to wide" to give you some ideas. This is a very common question. Also, in the future it's better to post a proper [reproducible example](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) (images of data aren't helpful). – MrFlick Apr 19 '17 at 21:10

1 Answers1

0

solution : rs=reshape(out, idvar = "year_actual", timevar = "month_actual", direction = "wide")

tero17
  • 1,570
  • 1
  • 11
  • 20