How can I make a counter for every country using a loop? R
问题 I think this is very easy but I have no idea how to do it (or how to search it). Okay so I got 378 observations for a lot of countries. It goes like this ISO3C Date Country Vaccines Tests Confirmed Recovered Death Hospitalized Ventilation ICU 1 AFG 2020-01-01 Afghanistan 0 0 0 0 0 0 0 0 2 AFG 2020-01-02 Afghanistan 0 0 0 0 0 0 0 0 3 AFG 2020-01-03 Afghanistan 0 0 0 0 0 0 0 0 4 AFG 2020-01-04 Afghanistan 0 0 0 0 0 0 0 0 5 AFG 2020-01-05 Afghanistan 0 0 0 0 0 0 0 0 So How do I set a counter