rOpenStats / COVID19analyticsBak2109

31 stars 9 forks source link

Replace gather with pivot_longer #3

Open kenarab opened 4 years ago

kenarab commented 4 years ago

Retired lifecycle

Description
Retired lifecycle
Development on gather() is complete, and for new code we recommend switching to pivot_longer(), which is easier to use, more featureful, and still under active development. df %>% gather("key", "value", x, y, z) is equivalent to df %>% pivot_longer(c(x, y, z), names_to = "key", values_to = "value")