Working with New Haven Area Census Data Using R

This post will work through a basic setup to look at census data for the New Haven area. It will rely on the tidycensus and tigris packages by Kyle Walker. The emphasis will be on the R code for getting and using Census data rather than on the data itself. I should emphasize that I am in no way an expert on the Census. On the contrary I would rate myself as a novice. [Read More]

Guilford Registered Voters: An R Sampler

Attention conservation notice: Unless you are interested in R-related detail, skip this post and read the next post instead. The Data Source It’s primary season and recently I learned about a somewhat strange site that collects a lot of voter registration data. It includes birth date and the full dataset also includes phone numbers. I was a bit surprised that this data is publicly available. Apparently I am not the only one. [Read More]

Web Scraping Javascript Content

Web scraping with rvest and SelectorGadget can be powerful and fun. Recently I have experimented with trying to scrape a table from the Chronicle of Higher Education that showed compensation for university CEO’s. With a certain amount of trial and error I used SelectorGadget to find the fields I wanted to scrape: name, university, and compensation. But when I went through the steps in rvest to scrape those fields, I got nothing (in the form of a zero length vector of results). [Read More]
R 

Using the Flickr API from R

There used to be an Rflickr package, but it no longer seems to work. It was last updated in 2011. I had a lot of trouble googling information on how to access Flickr from R. This example really got me started. It is doing very different things that what I wanted to do, so it may be more useful than what I am laying out here, depending on your goal. [Read More]
R  Flickr