Re: [R] Distance in miles btw Zipcodes

2015-09-18 Thread Hasan Diwan
Farnoosh, Please add your data by doing a dput(sample(data)) and we'll be able to help you further. -- H On 17 September 2015 at 15:36, Farnoosh Sheikhi via R-help < r-help@r-project.org> wrote: > Hello, > I'm trying to get the distances between two Zipcode variables, but for > some reason I get

Re: [R] Distance in miles btw Zipcodes

2015-09-17 Thread David Winsemius
On Sep 17, 2015, at 3:36 PM, Farnoosh Sheikhi via R-help wrote: > Hello, > I'm trying to get the distances between two Zipcode variables, but for some > reason I get this error: > "matching was not perfect, returning what was found.Error: no such index at > level 1" > Here is my code: > > lib

[R] Distance in miles btw Zipcodes

2015-09-17 Thread Farnoosh Sheikhi via R-help
 Hello, I'm trying to get the distances between two Zipcode variables, but for some reason I get this error: "matching was not perfect, returning what was found.Error: no such index at level 1" Here is my code: library(ggmap)mapdist(data$Zip.A, data$Zip.B, mode = "driving") The Zip codes are all