This page provides useful links and resources related to the many publicly available R packages that we will explore throughout the semester. (Note: This page will update periodically throughout the semester.)
| Use | Description | |
|---|---|---|
| haven | Data imports/exports | Import foreign statistical formats into R (Stata/SPSS/SAS) |
| dplyr | Data wrangling | A core package for dataframe manipulation |
| tidyr | Data wrangling | A collection of tools for creating tidy data |
| ggplot2 | Data visualization | Tidyverse implementation of the grammar of graphics |
| plotly | Data visualization | Plotly wrapper to create interactive visualizations |
| rvest | Data scraping | Useful for html web scraping |
| httr | Data collection | Easy commands to work with APIs |
| polite | Data scraping | Web scraping responsibly |
| scales | Data formatting | Formatting numeric data |
| lubridate | Data formatting | Working with date data |
| rgdal | Geospatial | For loading geospatial data (shapefiles) |
| sf | Geospatial | Working with geospatial data |
| mapproj | Geospatial | Loading map projections for visualizations |
| leaflet | Geospatial | Interactive mapping |
| forcats | Data wrangling | Working with factor functions in the tidyverse |
| caret | Machine learning | A workhorse package for training ML models |