add subject column, melted id=(activity,subject)

Did a summary of the tidyDF but don't think it's  what asked for  i.e
avg of each variable for each activity and  each subject.