I have the following dataframe
df<-read.table(text="Study.ID Studlab Cohort.size No.DTA No.TAA Operative.mortality.DTA Operative.mortality.TAA
30 Coselli2016 3309 0 3309 NA 249
42 Estrera2015 1896 646 1273 79 223
212 Youssef2015 62 NA 62 NA 14
203 Weiss2012 240 72 168 2 7
189 Tabayashi2010 102 4 98 0 6", sep="", header=T)
but I need it to look like this
Basically reshaping and adding 2 new columns "Studlab.R and group" . Studlab.R is a combination of 'Studlab" and "group" columns. I found different links for reshaping (eg here but I am still struggling with this
Any advice will greatly appreciated.