EC 320 - Introduction to Econometrics
2025
So now you know how to build a dataset and run a regresion.
But sometimes you want to ask your dataset questions, like:
In this lecture you will learn how to answer these questions and more using a toolset included in the tidyverse called dplyr
. The name stands for data pliers
and the idea is tha tyou should reach for your data pliers when you want to manipulate your data.
dplyr
is an amazing tool because, with just 7 main functions, you can answer just about any question you could possibly have about your data
If you have any data science experience, you will quickly realize that dplyr
is nothing new.
It is actually just SQL
, a language for querying databases that has been around since the ’70s.
We will not be write any SQL
but you should know that by learning dplyr
, you are also learning SQL
.
The graphics for the functions were created by Colleen O’Briant
This worksheet will help you learn coding by doing. You will:
EC320, R Lecture | Dplyr