I have some longitudinal data that looks like the following except with more subjects and times:
Date Sub1 Sub2 Sub3
8/10/2012 19.0 18.9 20.7
8/13/2012 19.0 19.1 19.5
I have dates at which each subject(sub1, sub2, and sub3) is given a score. How can I use reshape or any other R package to change this to the long format? so it looks like this:
Subject Score Date
Sub1 19.0 8/10/2012
Sub1 19.0 8/13/2012
Sub2 18.9 8/10/2012
Sub2 19.1 8/13/2012
Sub3 20.7 8/10/2012
Sub3 19.5 8/13/2012