DS4PS / cpp-529-fall-2020

http://ds4ps.org/cpp-529-fall-2020/
0 stars 0 forks source link

Lab 02 - get_acs() issue #1

Open brittanyharb opened 4 years ago

brittanyharb commented 4 years ago

So I am trying to use the get_acs function to download my data, however I keep getting this:

Getting data from the 2014-2018 5-year ACS Error in get_acs() : argument "geography" is missing, with no default

I don't see any specification on what to put for Geography. Please advise! I do understand that I have to specify the years in that function, but I'm just not sure what to do for Geography.

lecy commented 4 years ago

Geography is the unit of analysis (state, country, tract, etc.).

Would need to see some code to know what you need to change.

brittanyharb commented 4 years ago

Oh okay! I guess I was just wondering what level of data we are using. But it would be by county, correct?

I did it that way and RStudio says it is now loading the data.

I assigned Var as well, but here is the code and what RStudio says. Is this correct?

image

When I do head(CenDF) %>% pander() I get the following:

image

lecy commented 4 years ago

Correct:

The topic for our analysis will be to compare the house-price-to-income ratio across US counties and over time.

brittanyharb commented 4 years ago

Woohoo! Thank you!