Question: a ) Use left _ join ( ) to create a dataset containing all storms with fatalities appended. Notice that there may be multiple fatalities
a Use leftjoin to create a dataset containing all storms with fatalities appended. Notice that there
may be multiple fatalities per storm. Name this dataset detailsWfatalities.
b Use dplyr methods to calculate the number of fatalities per storm using the detailsWfatalities.
Summarize this variable to determine the spreadvariability of number of fatalities per storm. What do
you notice? Does the spread of data in this dataset display well in a histogram?
c Use dplyr to select only the state and the event type from the details dataset. Summarize the event
types in a table or dataset, perhaps using summarise Then, only keep the storm types that are
most common in this data set, and provide a visualization of their frequency using ggplot You will
probably want to rotate the axis labels on the axis this can be accomplished through theme and
appropriate use of searching google.
d We will now work with tornadoes only. Use filter to include only events of type tornado from the
original dataset details, and then assign this result to a dataset named tornadoes.
e Use dplyr methods to create a summarized dataset that includes number of tornadoes by state and
year in long format.
f Using the dataset created in e use the spread function to create a wide version of this dataset, with
columns through added to the new data. Name this dataset numTornadosSpread.
g Using dplyr determine how many tornadoes had at least one fatality. You may need to use a join, or
use a dataset you already created to complete this task.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
