Questions tagged [tidycensus]

84 questions
0
votes
1 answer

How can I plot a map using ggplot2 that includes the latitude and longitude of the data?

I have data that includes the longitude and latitude of certain locations in Arizona however its over 9000 observations and ggplot2 keeps giving me "Error in st_as_sf.data.frame(data, coords = c(x, y), remove = FALSE, crs = crs) : missing values in…
Irving C.
  • 3
  • 2
0
votes
1 answer

How to get rid of this API key issue (tidycensus)?

I need to get multiple years from the American Community Survey (ACS). For this, I created and activated the API key from the census website (https://api.census.gov/data/key_signup.html). My issue is that I'm able to use the key, sometimes. However,…
0
votes
2 answers

Tidy Census: Removing MOE columns

I am pulling some data through tidycensus from the ACS. When I do this, I get two columns for all the variables I included. Since my final dataset has a lot of variables, is it possible to turn off the pull of the MOE. Failing that, can I delete all…
tchoup
  • 971
  • 4
  • 11
0
votes
1 answer

use value object with list of variables to join to dataframe to create codebook

I am using the tidycensus package to pull out some census variables. I am making a list of desired variables with set variable names (dummy data below). I want to also create a codebook, where, ideally, I'd use the list of variable names to pull the…
tchoup
  • 971
  • 4
  • 11
0
votes
1 answer

Unable to plot the census tracts using tmap

I am getting an error in plotting the census tract of New York using tmap. Below is an example and the error. It requires API key which is free. Here is the link…
SiH
  • 1,378
  • 4
  • 18
0
votes
0 answers

How to use Geocoded data in Tidycensus

I'm working on a survey that we are missing some demographic information on. My advisor geocoded my database and gave me back everyone's census_block_group_id_2010 and census_track_2010 however he didnt explain how to link this database to…
0
votes
1 answer

Obtaining the household median income from ACS data

The code below perfectly returns what I need: the household median income for each puma using 2019 ACS (1-year). However, what is missing is the States name. I tried the option of state="all" but it did not work. How can I obtain my data of interest…
Nader Mehri
  • 514
  • 1
  • 5
  • 21
0
votes
0 answers

In Tidycensus, how can I get data by a small geography (block group, tract) for just a city, rather than the state or county?

New R user here looking for help with a get_data pull from TidyCensus. I’m looking to pull data on a small unit for a specific city, rather than to a county or state. For example tract data for the city of Pittsburgh or Block Group data for just…
TeaNoMilk
  • 15
  • 5
0
votes
1 answer

Downloading ACS data for state legislative districts using tidycensus::get_acs()

I'm trying to download 5-year ACS data for state legislative districts (both upper and lower). According to documentation for the get_acs() command, state legislative districts are a supported geography (see here). However, when I try to download…
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

Obtaining 2010 US Decenial Census Response Rates with 2010 boundaries

This question may be out-of-scope, but I'm not sure where else to ask it. I am trying to obtain response rates to the 2010 US census with 2010 boundaries. The census provides an overview of getting response rates here but it seems to use 2020…
SushiChef
  • 588
  • 3
  • 12
0
votes
0 answers

installation of package ‘tidycensus’ had non-zero exit status

I am not able to use this package. I need it to use zipcodeR package. I have updated R to the latest version. This is the message in my terminal message: install.packages("zipcodeR") also installing the dependencies ‘fastmap’, ‘cachem’, ‘terra’,…
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
0 answers

How to Standardize Principal Components after performing PCA using prcomp()?

I am attempting to emulate the following paper,using year 2000 decennial Census data to create an index known as the Neighborhood Deprivation Index(NDI): https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3261293/#CR73 I am particularly struggling with…
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