This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GP Oekologie 2022 | |
# Ingolf Kühn & Marina Golivets | |
# install & load R packages ------------------------------------------------------------------------ | |
rm(list = ls()) | |
# packages that we need for analyses | |
pkgs <- c( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load packages | |
library(rvest) | |
library(here) | |
# create a new forder for storing data | |
folder_name <- here(paste0("leda_", lubridate::today())) | |
dir.create(folder_name) | |
# extract URLs and download files | |
read_html("https://uol.de/en/landeco/research/leda/data-files") %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as input, provide a vector of verbatim taxon names (preferably with authorship) | |
# and a vector of existing local identifiers for those names | |
# load R packages | |
library(dplyr) | |
library(tidyr) | |
match_to_gbif.fn <- function(taxon_name, taxon_id, include_genus = FALSE) { | |
# perform initial matching in parallel |