Obtain the information about of an eLTER activity.
Source:R/get_activity_info.R
get_activity_info.Rd
This function obtains the information about of an eLTER activity (e.g. https://deims.org/activity/8786fc6d-5d70-495c-b901-42f480182845) provided in DEIMS-SDR catalogue.
Arguments
- activityid
A
character
. It is the DEIMS ID of activity make from DEIMS-SDR website. DEIMS ID information here. The DEIMS.iD of activity is the URL for the activity page.- show_map
A
boolean
. If TRUE a Leaflet map with occurrences is shown. Default FALSE.
Value
The output of the function is a tibble
with main features of
the activities in a site, and a leaflet
map plot.
References
Wickham H, François R, Henry L, Müller K (2022). dplyr: A Grammar of Data Manipulation. R package version 1.0.9, https://CRAN.R-project.org/package=dplyr.
R Core Team (2021). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org/.
Pebesma E (2018). “Simple Features for R: Standardized Support for Spatial Vector Data.” The R Journal, 10(1), 439--446. doi:10.32614/RJ-2018-009 .
Cheng J, Karambelkar B, Xie Y (2022). leaflet: Create Interactive Web Maps with the JavaScript 'Leaflet' Library. R package version 2.1.1, https://CRAN.R-project.org/package=leaflet.
Author
Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it
Examples
activities <- get_activity_info(
activityid =
"https://deims.org/activity/8786fc6d-5d70-495c-b901-42f480182845",
show_map = FALSE
)
activities
#> Simple feature collection with 1 feature and 12 fields
#> Geometry type: POLYGON
#> Dimension: XY
#> Bounding box: xmin: 17.22656 ymin: 40.46438 xmax: 17.33162 ymax: 40.50408
#> Geodetic CRS: WGS 84
#> # A tibble: 1 × 13
#> title abstr…¹ keywo…² uri type created changed relat…³ conta…⁴ conta…⁵
#> * <chr> <chr> <list> <chr> <chr> <chr> <chr> <list> <list> <list>
#> 1 Study of … "The i… <df> http… acti… 2021-0… 2021-0… <df> <df> <df>
#> # … with 3 more variables: boundaries <POLYGON [°]>,
#> # observationParameters <lgl>, relatedResources <list>, and abbreviated
#> # variable names ¹abstract, ²keywords, ³relatedSite, ⁴contacts.corresponding,
#> # ⁵contacts.metadataProvider