Description Usage Arguments Details Examples
View source: R/8_compare_country.R
Compares the given country names with the names assigned by the function
get_country
, get_country_shoreline
or
get_sea
.
1 2 |
countries_gv |
data frame with the coordinates and the given country names lon | lat | country_gv. |
countries |
data frame output of |
countries_sh |
data frame output of |
seas |
data frame output of |
miss_seas |
data frame output of |
excl_coords |
data frame output of |
Input:
A data frame with the coordinates and the given country names or a text file without header, the longitude in the first column, the latitude in the second column, both in decimal degrees. The given country name goes in the third column. The columns are separated by tabs and missing values must be codified as 'NA' in all fields.
The output of get_country
- 'countries' -,
get_country_shoreline
- 'countries_sh' -,
get_sea
- 'seas' and 'miss_seas' - and
get_lon180
or test_geocoord
-
'excl_coords'. However, only the 'countries' data frame is
compulsory because all those data frames may not exist.
Output:
Several text files, until the maximum of 9, which have the following header: country_gv |id | lon | lat | country | sovereignt | adm0_a3 | name_de | name_es | name_fr | name_pt. Those files split the list of points by types of differences between the given and the determinated country name:
Missing given or determined country name
Equal country name
Given country name equals to sovereignty
Given country name in another language
Given country name in upper case
Given country name with some equal words - English or another language
Set of 3 letters equals at the beginning or at the end of the words
Points that fall into the sea
Different country name
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
##
## First run
test_geocoord(coords = eraclim_uao_fp)
## Then run sequentially until all points have names assigned
get_country(icoords = coords_ok)
get_country_shoreline(icoords = miss_countries, tol)
get_sea(icoords = miss_countries_sh)
## And finally
compare_country(countries_gv = eraclim_uao_fp, countries = countries,
countries_sh = countries_sh, seas = seas, miss_seas = miss_seas, excl_coords
= excl_coords)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.