Question: As we learned in our tutorial, more advanced tools for indexing and slicing data frames are available through the dplyr package. In this exercise, we
As we learned in our tutorial, more advanced tools for indexing and slicing data frames are available through the dplyr package. In this exercise, we will apply the select, filter, and arrange tools to manipulate and organize our Covid data frame. In this exercise, we will focus on the Covid hospitalization data from countries in Europe. Therefore, we first want to subset our data frame to include only the columns with keywords icu and hosp, along with the metadata on continent, location, and date.
Q Using the dplyr package, generate a new dataframe called hospcoviddf using the select function that contains only the metadata continent location, and date and the nine columns that contain keywords icu and hosp from the dataframe primarycoviddf
Note, there may be many rows or cells with NA leave them be for now.As we learned in our tutorial, more advanced tools for indexing and slicing data frames are available through the dplyr package. In this exercise, we will apply the select, filter, and arrange tools to manipulate and organize our Covid data frame. In this exercise, we will focus on the Covid hospitalization data from countries in Europe. Therefore, we first want to subset our data frame to include only the columns with keywords icu and hosp, along with the metadata on continent, location, and date.
Q Using the dplyr package, generate a new dataframe called hospcoviddf using the select function that contains only the metadata continent location, and date and the nine columns that contain keywords icu and hosp from the dataframe primarycoviddf
Note, there may be many rows or cells with NA leave them be for now.
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
