I've got a list of Store IDs and their Zipcodes in a 2 column numeric vector (in R). I'm using the "Zipcode" package (https://cran.rproject.org/web/packages/zipcode/zipcode.pdf) and have access to the longitude/latitude coordinates for these zipcodes. The zipcode package has a data frame with every zip code, city,state, and longitude and latitude for all the zipcodes (as a large dataframe).
I'm looking to get the longitude and latitude coordinates for my Zipcodes, and add them as columns 3 and 4 (i.e. Store ID, Zip Code, Longtitude, Latitude)
Any thoughts? Thank you!
EDIT: I've tried the merge function (i.e.) total<-merged(CleanData,zipcode, by=zip) and I'm getting an error because they must have the same number of columns?