Thanks you, this helps. Great, Thomas
2009/8/3 Michael Denslow <michael.dens...@gmail.com>: > Hi Thomas, > > On Sun, Aug 2, 2009 at 11:02 AM, Thomas Steiner<finbref.2...@gmail.com> wrote: >> Is there a R-package with a function that returns me the timezone, if >> I hand over longitude and latitude? >> I know online services like >> http://ws.geonames.org/timezone?lat=-38.01&lng=147 and >> http://www.earthtools.org/webservices.htm#timezone and wodner if this >> exists for R too. >> Thanks for helping, >> thomas >> > > There is a geonames package. > >> library(geonames) > Loading required package: rjson >> GNtimezone(-38.01,147) > time countryName rawOffset dstOffset countryCode > gmtOffset lng timezoneId lat > 1 2009-08-03 10:23 Australia 10 10 AU > 11 147 Australia/Melbourne -38.01 > Warning message: > In readLines(u) : > incomplete final line found on > 'http://ws.geonames.org/timezoneJSON?lat=-38.01&lng=147' > > Not sure why I get this error but I think this is what you are after, > > Michael > > _____________________________________________ >> R-help@r-project.org mailing list >> 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. >> > > > > -- > Michael Denslow > > Graduate Student > I.W. Carpenter Jr. Herbarium [BOON] > Department of Biology > Appalachian State University > Boone, North Carolina U.S.A. > > -- AND -- > > Communications Manager > Southeast Regional Network of Expertise and Collections > sernec.org > ______________________________________________ R-help@r-project.org mailing list 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.