1
I really need your help to finish an analysis. have the following tables (data frames):
df1<-data.frame(c(0,1,1,0),c(1,0,0,1),c(1,1,0,0))
colnames(df1)<-c("0","0.5","1")
df2<-data.frame(c(1,1,1,0),c(0,1,0,0))
colnames(df2)<-c("0","0.5")
df3<-data.frame(c(1,1,1,1),c(0,0,0,1))
colnames(df3)<-c("0.5","1")
understand that for the analysis to work I need the three tables to have the columns of name 0, 0.5 and 1. I thought of summing all the tables with a template table containing the three columns and all values equal to zero, but I still could not solve this. Do you think this is the solution? How can I do this? Personal thank you!!