I've been using the mapdist funtion() for determining the distance between two zipcodes. I am not very good with loops yet and was wondering how to loop in multiple zipcodes so that I don't have to rerun the code every time.
Code posted below.
library(ggmap)
mapdist('95077','06473', mode = 'driving')