Questions tagged [tigris]

59 questions
0
votes
0 answers

Tigris error extracting county data using counties()

I am suddenly getting an error messaging when using tigris::counties() even though the same code worked perfectly fine a few weeks ago. Can anyone replicate this error or know of a workaround? require(tigris) counties_VT <-…
Quinterpret
  • 133
  • 6
0
votes
0 answers

Filtering Tigris primary_roads to only lower 48

I am pretty new to coding and r, and I am working on a modeling project using the Tigris package in r and ggplot2 for visualization. I am trying to construct a primary roads data frame but only using the data for the lower 48 states. In Tigris,…
savalle
  • 1
  • 1
0
votes
1 answer

Tigris r package how to include both elementary and unified school districts

I'm trying to create a map of school districts across the country. The Tigris shapefiles package is extremely helpful, but in some cases school districts are missing. I realized this was because it was only showing unified school districts, not…
user3710004
  • 511
  • 1
  • 6
  • 15
0
votes
0 answers

GEOIDs found in downloaded TIGER/LINE shapefile but not in R package tigris::tracts() returned shapefile

The first census tract shapefile was from https://www2.census.gov/geo/tiger/TIGER2017/TRACT/tl_2017_01_tract.zip. Let's call it shp1. Another approach is to use R package 'tigris' using following code to make sure the shapefile is also from 2017 and…
Kaysen
  • 1
0
votes
1 answer

How to assign the FIPS codes to multiple Counties by name?

New R user looking to assign the FIPS code to the counties within a dataset. I have multiple point data with a county name attached to the information, and I want to assign the appropriate FIPS code to all counties within the dataset. Data…
TeaNoMilk
  • 15
  • 5
0
votes
1 answer

How to intersect maps using Tigris (and keeping all maps boundaries)?

Sorry for this very basic question but I'm new using Tigris. I would like create a shapefile (and then plot it) of county boundaries + places boundaries for the state of Minnesota. Here is my code to get the counties: mn_counties =…
0
votes
2 answers

Why is tidycensus area provided different that calculated by sf::_st_area()

I am using the tidycensus R package to pull in census data and geometries. I want to be able to calculate population densities and have the results match what I see on censusreporter.org. I am noticing a difference between the geography variables…
Chris Kiniry
  • 499
  • 3
  • 13
0
votes
1 answer

How can I filter out the small Hawaiian islands with get_acs?

Can you use the resolution argument in get_acs() to filter out the small islands in the Hawaiian archipelago? I might have found a bug in tidycensus, one of my favorite packages. I was mapping U.S congressional districts using tidycensus's get_acs()…
0
votes
1 answer

Has anyone used append_geoid in TIGRIS to build a new data frame collecting the new census blocks?

I am looking for a way to regeocode in R using tigris. Is there away to write this into a new data frame and to also add the 2010 census block that was tied to the address? airports <- dplyr::data_frame( street = "700 Catalina Dr", city = "Daytona…
MJ_215
  • 13
  • 2
0
votes
1 answer

plot road network of two cities over each other (in the same scale) to compare the sprawl of cities

Inspired from this website (https://thetruesize.com) to compare countries How do I plot road_orlando and roads_miami over each other (SAME SCALE) to visually compare the road network sprawl. Edit - I had earlier asked to plot side by side in small…
SiH
  • 1,378
  • 4
  • 18
0
votes
1 answer

R vector for mainland US states

I wrote a vector for all the mainland US states when creating maps, so that nobody has to do this manually again. This is important for packages like Tigris if one is only trying to map mainland US. Please see below. Is there a more efficient way to…
0
votes
1 answer

How to get started on creating choropleth map

The task at hand is mapping the empprevyearpct value to a county map. The sample data is below. library(tidyverse) library(tigris) countyname <- c("Carson City","Churchill County","Clark County","Douglas County","Elko County","Esmeralda…
Tim Wilcox
  • 1,275
  • 2
  • 19
  • 43
0
votes
0 answers

R how to leave only outer border of census tract map? geom_sf, tigris

I'm creating a choropleth map and trying to draw borderline for metropolitan statistical areas. I managed to get it done mostly, but I want to leave only the outer borderline and get rid of the lines for smaller tracts within the area. Below is a…
jroychoi
  • 55
  • 5
0
votes
2 answers

R call_geolocator_latlon function returns NA

I am trying to obtain the Census tract information using the R tigris package and following the process as detailed here: Retrieve Census tract from Coordinates My code was working till last month when it suddenly stopped working and returns NA for…
ds_student
  • 183
  • 1
  • 2
  • 14
0
votes
1 answer

GEOID not found in TIGERLINE Shapefiles

Trying to use the TIGER/Line shapefiles and convert some GEOIDs (census track number) of Georgia into LAT/LONG in R. After the first round of conversion, I still have about 50k unmatched GEOIDs. Some of these leftovers…
Abby
  • 1