Answers for "wide to long format r"

1

wide to long format r

reshape(d, 
        direction = "long",
        varying = list(names(d)[3:7]),
        v.names = "Value",
        idvar = c("Code", "Country"),
        timevar = "Year",
        times = 1950:1954)
Posted by: Guest on January-14-2021

Browse Popular Code Answers by Language