The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

parzer

Project Status: Active – The project has reached a stable, usable state and is being actively developed. cran checks R-CMD-check codecov.io rstudio mirror downloads cran version

parzer parses messy geographic coordinates

Docs: https://docs.ropensci.org/parzer/

You may get data from a published study or a colleague, and the coordinates may be in some messy character format that you’d like to clean up to have all decimal degree numeric data.

parzer API:

Usage

For example, parse latitude and longitude from messy character vectors.

parse_lat(c("45N54.2356", "-45.98739874", "40.123°"))
#> [1]  45.90393 -45.98740  40.12300
parse_lon(c("45W54.2356", "-45.98739874", "40.123°"))
#> [1] -45.90393 -45.98740  40.12300

See more in the Introduction to the parzer package vignette.

Installation

Stable version

install.packages("parzer")

Development version

remotes::install_github("ropensci/parzer")
library("parzer")

Similar art

Meta

ropensci_footer

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.