VIS-2129-F2020 / svoorhees-vis

0 stars 0 forks source link

Stuck on Join #3

Closed sage-grey-voorhees closed 4 years ago

sage-grey-voorhees commented 4 years ago

Hi! I'm stuck trying to join two dataframes.

Could you help me figure out why this join isn't working in lines 206-216? I'm getting the error "Error: Join columns must be present in data. x Problem with Var1."

I've been looking at past examples of joins, and I'm not catching where the error is.

https://github.com/VIS-2129-F2020/svoorhees-vis/blob/master/Assignment3_VIS_REAL.Rmd

bauranov commented 4 years ago

Hi Sage,

The final code is:

freq_stop <- as.data.frame(table(unlist(fio_records$zip))) zip_stops <- bos_zip_code %>% left_join(freq_stop, by =c("ZIP5" = "Var1"))%>% select(ZIP5, Freq, OBJECTID,geometry)