z_coord {htsr} | R Documentation |
Coordinate utility
Description
Convert numeric coordinates in character coordinates
Usage
z_coord(ncoord = NA, ccoord = NA, type)
Arguments
ncoord |
Numeric coordinate |
ccoord |
Character coordinate |
type |
Lat / Lon |
Details
Only one of both parameters ncoord (numeric) and ccoord (character) must be filled, the other one remaining NA. The type of coordinate (Lat or Lon) is compulsory.
The character coordinate must be organized in one string with 4 fields (degrees, minutes, seconds, direction) separated with blanks (space or tab). Within each field, no blanks are allowed to share the numeric value and the unit character. For the unit character, the only following letters are allowed: letter d/m/s. For direction, the only the following letters are allowed: N/n/W/w/S/s/E/e.
Example: "25d 18m 56.2s S"
Value
Coordinates in characters
Author(s)
P. Chevallier - Jan 2019 / Nov 2020
[Package htsr version 2.1.5 Index]