Description Usage Arguments Details Value Note Author(s) References See Also
View source: R/assignElevation.R
Given a geographical coordinate (decimalLongitude/ decimalLatitude) the elevation data is assigned from an elevation database (Headers: decimalLongitude/ decimalLatitude/ elevation).
1 2 3 |
data |
Vector of characters. Name of the input file. |
path.data |
Vector of characters. Path to the input file. |
rd.frmt |
Vector of characters. The file format to read.
By default it will be read as a R object using the
|
elevations.db |
Data.Frame object. The elevations database, tree columns (decimalLatitude, decimalLongitude, elevation). |
round.coord |
Numeric vector. Decimal to round the coordinate to
assign the elevation. This value must be same of the coordinate
resolution of database assigned as argument on |
wrt.frmt |
Vector of characters. Format to save output
file. By default it will be written as a R object using the
|
save.assigned.in |
Vector of characters. Path to write the output file with only the coordinates whose elevation was assigned. Output file will be called <alt.assigned>. |
save.unassigned.in |
Vector of characters. Path to write the output file with only the coordinates whose elevation was not assigned. Output file will be called <alt.unassigned>. See details. |
For more details about the formats to read and/or write, see the
readAndWrite
function.
The coordinates whose elevations were not assigned could be checked with
elevFromGg
. This function can download data directly from
Google Maps Elevation API [1]
The headers of the input file must follow the Darwin Core standard [2]. The user can see the guide using data('ID_DarwinCore) command.
A table data.frame class with coordinates and their respective elevation. A table with coordinates whose elevations were not assigned. A table of information.
See: R-Alarcon V. and Miranda-Esquivel DR.(submitted) geocleaMT: An R package to cleaning geographical data from electronic biodatabases.
R-Alarcon Viviana and Miranda-Esquivel Daniel R.
[1] The Google Maps Elevation API. Available online at https://developers.google.com/maps/documentation/elevation/intro
[2] Wieczorek, J. et al. 2012. Darwin core: An evolving community-developed biodiversity data standard. PloS One 7: e29715.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.