latlon_as_decimal: Convert longitude and latitude to decimal equivalents

View source: R/misc.R

latlon_as_decimalR Documentation

Convert longitude and latitude to decimal equivalents

Description

Convert longitude and latitude to decimal equivalents

Usage

latlon_as_decimal(x, sep = c(",", NA)[1])

Arguments

x

character, vector of one or two elements in the form of "43.6233° N, 70.2067° W" or ["43.6233° N", "70.2067° W"]

sep

character or NA, if character the input is split if NA we assume that a two element vector is provided

Value

a two element numeric of [lat, lon]


BigelowLab/maree documentation built on April 23, 2023, 4:19 p.m.