Problem using geocode

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem using geocode

marcelat
Hello. I'm trying to geocode adresses from a .csv file
I imported the dataset and created a script for searching each line an adress.

here's the script:
pegacoord <- function() {
  apag2 <- data.frame()
  enderecos <- IURD_ENDS_SP$ENDERECOS
  for(each in enderecos) {
    nome <- geocode(each)
    apag2 <- rbind(apag2,nome)
  }
  return(apag2)
}

But this is what I receive
"Error: could not find function "geocode""

I appreciate any help.

Best wishes.