Questions tagged [tidycensus]
84 questions
0
votes
0 answers
Tidycensus call returning unexplained errors with same script but different years
I'm pulling multiple years of census data for a paper that I'm working. I'm want to pull the same variables from 2009 to 2016, 5-year Estimates at the census tract level in the state of New York. I've successfully run the script for 2016 and 2015,…

kaseyzapatka
- 149
- 2
- 9
0
votes
1 answer
R: How to name columns in get_acs from tidycensus?
When I run
age <- get_acs(geography="tract",table="B01001",state="IL")
I get the following error:
Getting data from the 2012-2016 5-year ACS
Loading ACS5 variables for 2016 from table B01001. To cache this dataset for faster access to ACS tables in…

theresawalrus
- 347
- 2
- 19
0
votes
1 answer
Is "county subdivision" geography supported for get_acs()
I'm trying to upload data for "county subdivision" as part of the geography options in tidycensus' get_acs() function. I know there are several geography options, which Kyle Walker has published on his page.…

bjk127
- 51
- 5
0
votes
1 answer
dotsInPolys length mismatch using data downloaded via tidycensus
Can you help figure out the best way to resolve the length mismatch error thrown by dotsInPolys? I think it is because there are NA's or NULLs or some funk in the polygon data that makes it too long. Here's code that reproduces the error.…

dca
- 594
- 4
- 18
0
votes
0 answers
Using summarize_at() with different funs() arguments... and other Qs related to margins of error
I am in the early stages of building a package for using CHAS data from HUD. The data is basically repackaged ACS data that has been adjusted for regional variations in median family income, as well as having created custom tabulations. There are 18…

oatmilkyway
- 429
- 1
- 6
- 17
0
votes
1 answer
Why does tidycensus get_decennial() fail when used within a function?
I am quite confused as to why this error occurs. I am trying to write a function that passes a character string to get_decennial() from the tidycensus package but it throws an error.
I am able to successfully run the same code outside the scope of…

buchmayne
- 144
- 1
- 15
0
votes
1 answer
get population by state 12 and older using census data?
Is it possible to get the US population by state age 12 or older? I'm trying to use the tidycensus package, but I'm not sure how to limit the count to add the age restriction.
library(tidycensus)
library(tidyverse)
census_api_key("MYKEY")
pop90 <-…

Ignacio
- 7,646
- 16
- 60
- 113
-1
votes
1 answer
Why is there multiple fips for a single county?
I am working with a dataset in R(county_data) and I have on a consumption column for every county in every state of the US. I tried to merge it with a dataset with fips code(I believe it comes with tidycensus package) but I noticed that there are…

An Ad
- 3
- 1
-3
votes
1 answer
How do I use R to download tabular data for Census 2000 blocks?
Attempting to use tidycensus package to download data.
As I read it, tidycensus supports blocks for 2000. Tract works, block group works, blocks fail
library(tidycensus)
library(tidyverse)
library(viridis)
library(ggplot2)
library(dplyr)
#------Get…

Mox
- 511
- 5
- 15