Reshape data from long to wide format - more than one variable [duplicate]
问题 This question already has an answer here: Reshape multiple values at once 2 answers I’m trying to reshape my data from long to wide formula using the dcast function from reshape2. The objective is to use different variables in the value.var parameter but R doesn't let me use more than one value in it. Is there any other way I could fix it? I've looked at other similar questions but I haven't been able to find a similar examples. Here is my current dataset: +---------+------+--------+---------