Which Applied Epi training is this question referring to?
Live intro course, final exercise using R markdown
Provide an overview of your problem
- I’d like to create a dynamic in-line code for the section under header: Weekly epidemic curve by city, which will dynamically update the month (or week) where cases have peaked.
I’m thinking the first step would be to get the week or month/year with the most number of cases, then pipe that into an in-line code. However, I’m at a loss how to start this process. Should I create a new table with the number of cases per week or month? Or can I somehow use the weekly_breaks df that we created for the epi curve?
- I’d also like to create a dynamic in-line code for the section under header: Cumulative case incidence by city, which will dynamically update the city with the highest incidence rate in the sentence.
For this part, I was already able to include the actual number of cases using the max(city_table$inc_per_10k). However I don’t know how to “call” the actual name of the city (in this case, College Park) with the highest number of cases.
Attached is my Rmd file for reference.
covid_sitrep_ian.Rmd (7.8 KB)