get_lon180: Tests the Geographic Coordinates and Transforms the Longitude...

Description Usage Arguments Details Examples

View source: R/1_get_lon180.R

Description

Given a list of geographic coordinates, first tests the coordinates for out of bounds values and missing values. Then transforms the longitude from (0, 360) to (-180, +180) degrees, considering 6 significative digits.

Usage

1
2
3
4
5
## If there are the coordinates data frame
get_lon180(coords)
##
## If there are the coordinates text file
get_lon180(coords = NULL)

Arguments

coords

data frame with the geographic coordinates in decimal degrees, the longitude in the first column, the latitude in the second column and the column names: lon | lat (other columns can exist, however are unnecessary for this function).

Details

Input:

Output:

Examples

1
2
3
4
## Not run: 
get_lon180(coords = ispd)

## End(Not run)

mcmventura/stlocationqc documentation built on May 24, 2019, 11:43 p.m.