Watts-College / cpp-529-spr-2022

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

lab 02 #7

Open kidistbetter105 opened 2 years ago

kidistbetter105 commented 2 years ago

@JasonSills

Step 1: Getting the Data

VarSearch <- load_variables( 2017, "acs5", cache=TRUE )

VarSearch$label <- toupper(VarSearch$label)

Veiw(VarSearch)

Am getting the following error

Error in Veiw(VarSearch) : could not find function "Veiw"

and also when running the following code { r,include=FALSE}

hp2i <- c(median.house.Value = "B25077_001", income = "B19013_001")

CenDF <- get_acs(geography="country", year=2017, survey="acs5", variables= hp2i, geometry=T)

head(CenDF)

ERROR Error: Your API call has errors. The API message returned is an error: unknown/unsupported geography hierarchy

I need help pls

JasonSills commented 2 years ago

@kidistbetter105

Let's check a couple of things.

First, what libraries have you loaded in R?

Second, did you activate your Census key?

JasonSills commented 2 years ago

Third, double check your spelling. In your error it's telling you something about geography. It's telling you that it doesn't recognize your geography. If your libraries are loaded, your Census key is activated, let's problem solve the code. Double check that your geography is correct.