I have a data frame that looks like this:
variable=c("alpha","beta1","beta2")
value=c(22,11,33)
df=data.frame(variable=variable,
value=value)
df
variable value
alpha 22
beta1 11
beta2 33
and I would like it to look like this:
coef alpha beta1 beta2
value 22 11 33
what is the reshape/cast/dcast logic?
thank you