Learn R Programming

arete (version 0.1)

aux_string_to_coords: Mechanical coordinate conversion

Description

Mechanically convert character strings containing geographic coordinates and convert to sets of numeric values. Useful as most LLM experience better and more consistent results when asked to return a single string instead of two separate values.

Usage

aux_string_to_coords(coord_string)

Value

list. Contain latitude and longitude as the first and second elements, respectively.

Arguments

coord_string

character. A string containg potential geographic coordinates.

Details

Will convert all strings to N, W for consistency's sake. Future updates will probably make it a toggle.

Examples

Run this code
example = "19 ° 34 ’ S 29 ° 10 ° E"
aux_string_to_coords(example)

Run the code above in your browser using DataLab