[R] Distance in miles btw Zipcodes
dwinsemius at comcast.net
Fri Sep 18 02:08:20 CEST 2015
On Sep 17, 2015, at 3:36 PM, Farnoosh Sheikhi via R-help wrote:
> 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")
Yes, for "some reason". But how should we be able to guess the reason when no data is available?
> The Zip codes are all in 5 digits format.I really appreciate any help or suggestion.Thanks.
> [[alternative HTML version deleted]]
The reason you code is messy is that you posted in HTML to a plain-text mailing list.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Alameda, CA, USA
More information about the R-help