I'd recommend just using a simple function for this particular thing,
and then use proj4 for complicated geographical transforms. This is
such an elementary operation it's not worth getting involved proj4,
which, as far as I'm aware, doesn't bother doing what you're wanting
anyway.
Now, proj4. What other sorts of transformations are you likely to be
doing? Do you know the ins-and-outs of projections and datums?
If not, you'll really need to learn something about these in order to
use proj4 correctly.
James
On Tue, Sep 16, 2008 at 12:35 PM, Rodrigo Aluizio <r.aluizio at gmail.com>
wrote:> Hi everybody,
> I'm looking for some package or function of R that can convert
Coordinates of Longitude and Latitude in different formats, such like: Deg and
decimals, UTM, degree minutes and seconds, etc...
> I'm found something (Proj4 package) but I'm note sure if it's
what I need.
> I have a sheet with tree columns, the first has the sample identification,
the second and third have the Longitude and Latitude, respectively in D M'
S''. I need to transform it into Degrees and decimals.
> I know that I can create a "function" with some basic mathematics
to this one, but I'll need to convert other formats in the future and it
won't be that easy. So, any suggestion well be appreciated.
> Thanks in advice.
> ___________________________________
> MSc. Rodrigo Aluizio
> Centro de Estudos do Mar/UFPR
> Laborat?rio de Micropaleontologia
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at 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.
>
>