Question
Please use R to write, Take the county-level data and add up the total case number in each state on each day (e.g., aggregate to
Please use R to write,
Take the county-level data and add up the total case number in each state on each day (e.g., aggregate to the state level). Store this in a data frame called `county_to_state_total_cases_df` with 3 columns:`date`, `state`, `county_total`
To avoid dplyr keeping the results "grouped" in your output, pass an additional argument to your summarize() call telling it not to keep the groups:.groups = "drop"
The county-level data frame: county_df
Columns: date, county_state, county, state, fips, cases, deaths
The state-level data frame: state_df
Columns: date, state, fips, cases, deaths, ratio_deaths
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started