Watts-College / cpp-529-spr-2022

https://watts-college.github.io/cpp-529-spr-2022/
0 stars 2 forks source link

Lab 2 - Step 1: Getting the Data - Your API call has errors #6

Open Dimetry-Adel opened 2 years ago

Dimetry-Adel commented 2 years ago

Dear Dr. @JasonSills, Hello everyone,

After running this code

hp2i <- c(median.house.value = "B25077_001",
          income = "B19013_001")
CenDF <- get_acs(geography = "county",
                year = 2017,
                survey = "ac55",
                variables = hp2i,
                geometry = T)

head( CenDF )

My Census Data API Key is activated.

However, I got this message

Error: Your API call has errors. The API message returned is Error report

HTTP Status 404 - /data/2017/acs/ac55

I tried to reactivate the code, but it still appears.

Kindly, could you help me?

Thank you in advance, Dimetry

JasonSills commented 2 years ago

@Dimetry-Adel ,

In you code you have survey = "ac55" Change this to survey = "acs5"

Let me know if this works.

Dimetry-Adel commented 2 years ago

@JasonSills Sorry for the typo.

Thanks a lot.