Step 2 of Creating 604 Dashboard
Load In Data:
Note: Step 1 (the Scrape) will not be published due to containing confidential account information.
Code from DBD (2021):
setwd("~/DACCS R/604 Data Viz")
# GET GEO CODES NO RT
geocodes <- lat_lng(stTweets)
geocodes <- geocodes[!is.na(geocodes$lat),]
write_as_csv(geocodes,"geocodes.csv") #don't forget to copy this saved file to your app directory
[Note: something very weird is going on, as I reran this and ALL my variables with data disappeared?? So I rescraped, and I’m trying again - if this does not work, I’ll just do the wordcloud.]
Okay, it seems to have worked!