Materials for EcoDataScience workshop on tidycensus
package.
- When: Wednesday January 17, 11:30-1PM
- Where: In-person @UCSB Library DREAM Lab (RM 2322, Mountain side of the building on the second floor)
- What: Intro to the
tidycensus
package.
install.packages(tidycensus)
library(tidycensus)
- Go to https://api.census.gov/data/key_signup.html
- Fill out the form
- Check your email for your key.
census_api_key("YOUR KEY GOES HERE", install = TRUE)
Note: install = TRUE forces R to write this key to a file in our R environment that will be read every time you use R. This means, by setting this argument to TRUE, you only have to do it once in any computer you are working. If you see this argument as FALSE, R will not remember this key next time you come back.
tidycensus
dplyr
tidyr
ggplot2
mapview
sf