🚴♂️
This file contains 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
<!-- Sources: | |
https://leafletjs.com/examples/quick-start/ | |
https://www.sitepoint.com/leaflet-create-map-beginner-guide/ | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" /> | |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script> |
This file contains 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
library(rgbif) | |
library(tidyverse) | |
# Create list of taxa we are interested to. | |
taxa <- tibble( | |
species_name = c("Amelanchier lamarckii", | |
"Mareca sibilatrix", | |
"Ursus maritimus" | |
) | |
) |
This file contains 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
library(rgbif) | |
library(dplyr) | |
library(purrr) | |
library(readr) | |
# Get dataset | |
doi <- "2c38cf8a-f981-4dfb-bc9d-dd2b6fc792ed" | |
taxa <- rgbif::name_usage(datasetKey = doi, limit = 99999) | |
taxa <- taxa$data |
This file contains 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
library(readr) | |
library(dplyr) | |
library(purrr) | |
# specify your path | |
occs <- read_tsv("../../0104018-230224095556074_eu_ias_occs.txt", | |
guess_max = 100000, | |
na = "" | |
) |
This file contains 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
library(rgbif) | |
# specify keys of interest | |
taxon_key_key <- "taxonKey" | |
taxon_key_value <- c(2978552, # EU - IAS list | |
2489005, | |
3190653, | |
2498252, | |
3084923, | |
2340977, |
This file contains 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
## Example from prius project | |
# Load packages | |
library(rgbif) | |
library(tidyverse) | |
# Read checklist | |
checklist <- readr::read_csv("https://raw.githubusercontent.com/inbo/prius/main/data/input/prius_species_list.csv", | |
na = "", | |
locale = locale(encoding = "ISO-8859-1") |
This file contains 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
{ | |
"name": "observations", | |
"title": "Observations", | |
"description": "Table with observations based on the media files. Associated with deployments (`deploymentID`), sequences (`sequenceID`) and optionally individual media files (`mediaID`). Observations can mark non-animal events (camera setup, human, blank) or one or more animal observations (`observationType` = `animal`) of a certain taxon, count, life stage, sex, behaviour and/or individual.", | |
"fields": [ | |
{ | |
"name": "observationID", | |
"type": "string", | |
"format": "default", | |
"description": "Unique identifier (within a project) of the observation.", |
This file contains 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(rgbif) | |
library(tidyverse) | |
#' example input | |
vernacular_names_df <- tibble( | |
id = c(1,2,3,4,5,6,7,8), | |
vernacular_name = c("Beenvissen", | |
"Bruine beer", | |
"Bont zandoogje", |
This file contains 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
library(rgbif) | |
library(inborutils) | |
library(tidyverse) | |
# names list example | |
names_bim <- c("Asplenium hemionitis L.", | |
"Dracaena draco (L.) L.", | |
"Viola rupestris subsp. relicta Jalas") | |
# make a df of it |
This file contains 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
library(inborutils) # To download data from zenodo (not needed for manual download) | |
library(readr) # To read data | |
library(dplyr) # To do datascience | |
library(tidylog) # # To provide feedback on dplyr functions (not essential, but nice to have) | |
library(here) # To find files | |
# Files we need | |
files <- c("protected_areas_species_occurrence.csv", | |
"protected_areas_species_info.csv", | |
"protected_areas_metadata.csv") |
NewerOlder