Joining datasets with inner_join
In the first chapter, you created the votes_processed dataset, containing information about each country's votes. You'll now combine that with the new descriptions dataset, which includes topic information about each country, so that you can analyze votes within particular topics.
To do this, you'll make use of the inner_join() function from dplyr.
Este ejercicio forma parte del curso
Case Study: Exploratory Data Analysis in R
Instrucciones del ejercicio
- Load the
dplyrpackage. - Print the
votes_processeddataset. - Print the new
descriptionsdataset. - Join the two datasets using dplyr's
inner_join(), using thercidandsessioncolumns to match them. Save asvotes_joined.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Load dplyr package
# Print the votes_processed dataset
# Print the descriptions dataset
# Join them together based on the "rcid" and "session" columns