How we can transform data from wide dataset to long data set?

The data examples COVID-19 Data John Hopikins University data Confirmed, death and Recovered datasets.

By using tidyr::pivot_longer()

https://tidyr.tidyverse.org/articles/pivot.html

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

There's also an R package that contains this data:

I have seen the package, however, i want know the steps how to transform the dataset.

thank you. the hint, if i can't manipulate i will post soon

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.