View source: R/get_ilter_generalinfo.R
get_ilter_generalinfo | R Documentation |
This function downloads generic information
of sites of
ILTER sites
(more than 1200 around the world),
through the DEIMS-SDR API.
Return a
tibble
object.
get_ilter_generalinfo(country_name = NA, site_name = NA, show_map = FALSE)
country_name |
A |
site_name |
A |
show_map |
A |
An sf
object of the bounding boxes of sites in the filtered list,
containing the name, DEIMS ID, longitude, latitude, average altitude,
and affiliation of the filtered ILTER sites.
If no bounding box is available,the centroid is returned.
at least one of country_name
or site_name
must be specified
Alessandro Oggioni, phD (2021) oggioni.a@irea.cnr.it
Micha Silver, phD (2021) silverm@post.bgu.ac.il
Paolo Tagliolato, phD (2023) tagliolato.p@irea.cnr.it
jsonliteRReLTER
\insertRefsfRReLTER
\insertRefleafletRReLTER
## Not run:
# list of the all sites info with ILTER
listOfAllSites <- get_ilter_generalinfo()
length(listOfAllSites[,1])
# example about country name parameter
sitesAustria <- get_ilter_generalinfo(country_name = "Austri")
# (matches Austria, but not Australia)
length(sitesAustria$title)
# example of single site in a country
eisenwurzen <- get_ilter_generalinfo(
country_name = "Austri",
site_name = "Eisen"
)
eisenwurzen[,1:2]
# extract DEIMS.Id
eisenwurzen_deimsid <- eisenwurzen$uri
eisenwurzen_deimsid
# example of single site in a country and return only map
get_ilter_generalinfo(
country_name = "Italy",
site_name = "Maggiore",
show_map = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.