Giter Club home page Giter Club logo

long_lat_to_decimal's Introduction

long_lat_to_decimal

Convert Latitude and Longitude written in degree-min-sec to decimal

This is a modified version of the function developped by A. Marcia Barbosa (https://modtools.wordpress.com/) and PaulMelloy. The original version can be found here: https://github.com/AMBarbosa/unpackaged/blob/master/dms2dec

In this version, Commas "," were added as a seprator.

All credits goes to the original authors.

Use as follow:

# import function
source("https://raw.githubusercontent.com/pjmramond/long_lat_to_decimal/main/dms2dec2")

# generate example data
data<-data.frame(Latitude = c("9°2,419S","9°2,419S" ,"9°29,929S" ,"9°29,929S", "9°43,552S", "9°43,552S", "10°1,492S"),
Longitude = c("139°39,846W", "139°39,846W", "138°57,937W", "138°57,937W", "139°10,824W", "139°10,824W", "139°24,097w"))

# use function
dms2dec(data$Latitude)
dms2dec(data$Longitude)

long_lat_to_decimal's People

Contributors

pjmramond avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.