test_geocoord: Tests the Geographic Coordinates.

Description Usage Arguments Details Examples

View source: R/1_test_geocoord.R

Description

Given a list of geographic coordinates, tests if the longitude belongs to (-180, +180) degrees and if the latitude belongs to (-90, +90) degrees. Also tests the coordinates for missing values.

Usage

1
2
3
4
5
## If there are the coordinates data frame
test_geocoord(coords)
##
## If there are the coordinates text file
test_geocoord(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 could exist, however are unnecessary for this function).

Details

Input:

Output:

Examples

1
2
3
4
## Not run: 
test_geocoord(coords = eraclim_uao_fp)

## End(Not run)

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