Question: Use R language Data wrangling Start with outbreak_raw. Your new wrangled dataset should be saved as an object called outbreak. Make sure the episode_week column

 Use R language Data wrangling Start with outbreak_raw. Your new wrangled

Use R language

Data wrangling Start with outbreak_raw. Your new wrangled dataset should be saved as an object called outbreak. Make sure the episode_week column is in date format by explicitly overwriting it with a date version if itself. Use the date() function. Assess whether the data is currently tidy. If yes, proceed. If no, alter it to be tidy. Specifically, it needs to be in the correct format to be useful for creating the figure for this section. Note how Sporadic and Outbreak associated appear in the figure for this section. Make alterations to your data that make sure these names are a) correctly worded/capitalized and b) will appear in the correct order in the legend of the figure for this section. Create a new variable, total_cases, that indicates the total number of cases in the episode week, i.e., the sum of sporadic cases and outbreak associated cases. . Data wrangling Start with outbreak_raw. Your new wrangled dataset should be saved as an object called outbreak. Make sure the episode_week column is in date format by explicitly overwriting it with a date version if itself. Use the date() function. Assess whether the data is currently tidy. If yes, proceed. If no, alter it to be tidy. Specifically, it needs to be in the correct format to be useful for creating the figure for this section. Note how Sporadic and Outbreak associated appear in the figure for this section. Make alterations to your data that make sure these names are a) correctly worded/capitalized and b) will appear in the correct order in the legend of the figure for this section. Create a new variable, total_cases, that indicates the total number of cases in the episode week, i.e., the sum of sporadic cases and outbreak associated cases

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!