Description Usage Arguments Details Value Special countries See Also
qc_coord_sign_test
is an internal function to test if site coordinates
signs are interchanged. It's needed by qc_fix_latlong_errors
function.
1 2 | qc_coord_sign_test(data, maps_folder = getwd(), special_countries = FALSE,
parent_logger = "test")
|
data |
Data frame with data coming from |
maps_folder |
Folder route where the maps are stored, by default the
working directory. It must be a character object and it must end
without |
special_countries |
Logical indicating if the special approach to countries having positive and negative coordinates must be used. See Special countries section for details. |
Country coordinates sign is established by this function and testing if provided site coordinates are correct is made.
Same data frame provided, with a two new columns, lat_changed
and long_changed
, two logicals indicating if the coordinates are
sign exchanged
There are special countries where border coordinates for longitude, latitude
or both have negative and positive values. In this case, the normal approach
of qc_coord_sign_test
is not appropriate, and several tests involving
the internal use of qc_check_coordinates
must be made. If
special_countries = TRUE
is specified, then tests are made trying to
dilucidate if only a change in the sign of one, latitude or longitude, is
needed or, in the contrary, changing both of them is needed. There is one
case that can not be covered by this approach: when changing sign of one of
the coordinates AND changing both coordinates seem to fix the issue,
as the correct option can not be assured.
Other Quality Check Functions: qc_check_coordinates
,
qc_download_maps
,
qc_fix_latlong_errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.