HAVE = data.frame('STUDENT'= c(1,2,3,4),
'1/1/2019' = c(1, NA, 8, 4),
'2/1/2019' = c(1, 3, NA, 6), 1 3 6
'1/15/2020' = c(NA, 7, NA, 10))
WANT = data.frame('STUDENT' = c(1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4),
'DATE' = c(43466, 43497, 43845, 43466, 43497, 43845, 43466, 43497, 43845, 43466, 43497, 43845),
'SCORE' = c(1, 1, NA, NA, 3, 7, 8, NA, NA, 4, 6, 10))
I have a data file for in it the COL names are DATES and I wish to reshape from 'HAVE' to 'WANT' where the values inside are 'SCORE'