Hello everyone, bit confused.
I have dataset as follow in csv format. Each country row contains the recovered patients data from Date1, Date2,...DateN. Each file contains the single month data of Covid19 Recovered patients.
Country Date1 Date2 Date3 ... DateN`
Afghanistan 0 1 0 ...
Algeria 0 1 0 ...
Andorra 0 1 0 ...
How do I can transform the above mention format csv data into following. Does not have any experience before with r language, data preparation and wrangling.
Country Date RecvrdPatnts
Afghanistan Date1 0
Afghanistan Date2 1
Afghanistan Date3 0
Andorra Date4 0
Andorra Date5 1
...
...
Country N DateN RecoveredPatients
Any suggestions tip or point me some where from should I have to start for transforming data.