使用dcast整合数据,数据的value全部变成0,1. 如何让数据不发生变化? 求问怎么处理?
第一次变换:melt(WEFData,id.vars = c('Edition','Code.GCR','Series','Attribute'),variable.name="Country",value.name = "Score")
第二次变换:dcast(rankWEFData,Edition+Code.GCR+Attribute + Country ~ Series,value.var = 'Score')