cimis_format_location {cimir}R Documentation

Format CIMIS Station Location

Description

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

Usage

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")
}


[Package cimir version 0.4-1 Index]