This function transforms standard geographical coordinates in degrees, minutes and seconds input as characters (or a factor) into numerical values in degrees.
a vector of character strings storing geographical coordinates; this can be a factor with the levels correctly set.
a single character giving the symbol used for degrees, minutes and seconds, respectively.
This function should be robust to any pattern of spacing around the values and the symbols (see examples).
If the letter S, W, or O is found is the coordinate, the returned value is negative.
Note that longitude and latitude should not be mixed in the same character strings.
The default for
NULL) is because the degree
symbol (°) is coded differently in different character encodings.
By default, the function will use the appropriate character depending
on the system and encoding used.
a numeric vector with the coordinates in degrees (eventually as decimal values).
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.