0

I have the firm addresses and would like to know which county it belongs to. What kind of package should I use to get it done efficiently? I have over 40000 addresses. I am trying tigris and censusxy now but not sure how to do it. The issue with the following code is that, they return too many information that I don't need. I only need county information. Instead of returning to a list, I only want the county name. Other ways to deal with it will also be great!

adr2 <- c('110 State St, Albany, NY' , 
         '100 State Cir, Annapolis, MD' ,
         '206 Washington St SW, Atlanta, GA' ,
         '210 State St, Augusta, ME' ,
         '1100 Congress Ave, Austin, TX')
   geocodes <- vector("list", length = 5)
   for (i in seq_along(addresses)){
  geocodes[[i]] <- cxy_oneline(adr2[i])
}
Jane
  • 91
  • 4

0 Answers0