Format the latitude and longitude of station in Decimal Degrees (DD) or Hour Minutes Seconds (HMS).

cimis_format_location(d, format = c("DD", "HMS"))

Arguments

d

A data frame of CIMIS data results.

format

The format to use, either Decimal Degrees ("DD") or Hour Minutes Seconds ("HMS").

Value

The data frame, with a new "Latitude" and "Longitude"

columns replacing the "HmsLatitude" and "HmsLongitude"

columns.

Examples

if(is_key_set()) {
  d = cimis_station(170)
  cimis_format_location(d, "DD")
  cimis_format_location(d, "HMS")
}