Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAB 02 #5

Open
sunaynagoel opened this issue Oct 24, 2019 · 4 comments
Open

LAB 02 #5

sunaynagoel opened this issue Oct 24, 2019 · 4 comments
Labels

Comments

@sunaynagoel
Copy link

sunaynagoel commented Oct 24, 2019

I am trying to isolate just the two variables I need. Here is my code

medianvalue <- c (HHIncome = "B25099_001",
                  HouseValue = "B25077_001")
USA <- get_acs (geography = "tract", year = 2017, survey = "acs5", variables = medianvalue, geometry = T )
head(USA)

This keeps giving following error
Error: Your API call has errors. The API message returned is error: unknown/unsupported geography hierarchy.

Please help

@lecy
Copy link
Collaborator

lecy commented Oct 24, 2019

The Census API sometimes limits the amount of data you can download over time. It will not allow you to download all of the tracts for the entire US at one time, for example.

If you type help( get_acs ) you will see this example:

tarr <- get_acs( geography = "tract", 
                 state = "TX", county = "Tarrant", 
                 variables = "B19013_001", geometry = TRUE )

I would try adding a state or state+county and see if it works then.

@sunaynagoel
Copy link
Author

@lecy Thank you. That part worked with state and county name. Now the assignment is looking for data from the entire country. Is there any way to do it ?

@AntJam-Howell
Copy link
Collaborator

Which step/question are you referring to? The steps/questions vary in terms of asking for county level data (i.e. entire country) or tract level data (i.e. maricopa county). The lab does not ask you to get tract data for the entire country.

@sunaynagoel
Copy link
Author

I am still on step 2. Thanks

@lecy lecy reopened this Nov 5, 2019
@lecy lecy added the lab-02 label Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants