Hi Elahe, maybe the us.cities() in the maps package is what you look for.
HTH Ulrik On Thu, 23 Mar 2017 at 11:34 Elahe chalabi via R-help <r-help@r-project.org> wrote: > Hi all, > > I have a data frame containing serial numbers for US. I also have a column > showing the city in US, now my question is is there a package in R able to > get the city in US as input and then return the name of State for that > city?! > > Thanks for any help! > Elahe > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.