Hi Rui,
I succeded to convert a coordinate from decimal to DMS formats but not the
inverse!!!
dd<- -52.55684
c<-dd2dms(dd, NS = FALSE)
c
[1] 52d33'24.624"W
>
The use of char2dms() function is not so easy because I cannot yet read() the
text file with the DMS coordinates (one col. with the
Hello,
Here is the link to the archived versions of package measurements [1].
But the edit to that answer has another solution, with sp::char2dms and
you are loading package sp.
[1] https://cran.hafro.is/src/contrib/Archive/measurements/
Hope this helps,
Rui Barradas
Às 10:57 de
Hello,
See if this StackOverflow.com post [1] solves your problem.
Also, examples should be minimal, you don't need all those packages to
solve this problem.
[1] https://stackoverflow.com/a/69485865/8245406
Hope this helps,
Rui Barradas
Às 21:43 de 24/04/2022, Nicolas Degallier
Dear R Users,
I am using a 'simple' script to draw maps with points.
It runs fine with the following libraries:
library(sp)
library(maptools)
library(maps)
library(mapdata)
library(RColorBrewer)
library(MASS)
library(rgeos)
library(GISTools)
Until now, to prepare the input data, I have used
4 matches
Mail list logo