Displaying 1 result from an estimated 1 matches for "gnpostalcodelookup".
2009 Dec 14
1
lapply , mapply questions
...t smoothly.
I have a vector of Zipcodes and i want to do a geonames lookup for all of them, which should not be a problem.
Of course i could create a loop for that one, but i think lapply should be possible, too.
The problem is to hand over the variable to the lookup function.
lapply(zipcodes,GNpostalCodeLookup(postalcode=zipcodes,country="US"))
where zipcodes is my vector of zip codes an GNpostalCodeLookup is the function that gives back some information like longitude and aptitude etc. Is it possible to use lapply in that context or can I just use it in contexts like lapply(somelistofvectors,...