order_data: Reorder the List of Coordinates by the Initial Order.

Description Usage Arguments Details Examples

View source: R/7_order_data.R

Description

After running sequentially get_lon180 or test_geocoord and get_country, get_country_shoreline and/or get_sea to assign the geographic names, this function uses the output of those. It combines by row the data frames with a description - geographic name or indication of some problem with the coordinates (if that occurs) - and orders the data by the same order as in the input text file or data frame (given by the user, with the list of coordinates).

Usage

1
2
order_data(countries, countries_sh = NULL, seas = NULL, miss_seas =
NULL, excl_coords = NULL)

Arguments

countries

data frame output of get_country.

countries_sh

data frame output of get_country_shoreline.

seas

data frame output of get_sea.

miss_seas

data frame output of get_sea.

excl_coords

data frame output of get_lon180 or test_geocoord.

Details

Input:

Output:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
##
## First run
get_lon180(coords = ispd)
## Or
test_geocoord(coords = eraclim_uao_fp)
## Then run sequentially:
get_country(icoords = coords_ok)
get_country_shoreline(icoords = miss_countries, tol)
get_sea(icoords = miss_countries_sh)
## And finally
## For the ISPD case
order_data(countries = countries, countries_sh = countries_sh, seas = seas)
## For the ERACLIM_UAO_FP
order_data(countries = countries, countries_sh = countries_sh, seas = seas,
excl_coords = excl_coords)

## End(Not run)

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