A Tidyverse Approach to Swedish Marine Monitoring Data
Plankton Food Webs, Stockholm University 2019
This package contains functions to easilly download and access datasets from SHARKdata. SHARKdata is a database containing many years of environmental monitoring of the Baltic Sea. The database is hosted by SMHI (Swedish Institute for Metrology and Hydrology).
V 0.1.3 1. Relying on "table.txt" instead of "list.json" (that is discontinued from sharkdata).
V 0.1.2
V 0.1.1
This package can be installed directly from github. Install it with devtools:
install.packages("devtools")
devtools::install_github("andreasnovotny/shaRk")
The interactive data explorer can after installation be opened by typing:
library(shaRk)
exploreSHARK(download=TRUE)
This function will first retrieve all available zooplankton and phytoplankton data from the SHARK database (OBS, this might be time consuming). Then it will open an interactive explorer in a new window, or in the web explorer.
To save time, the datasets are automaticaly saved into your shaRk package directory. Thus, next time you want to open the explorer, simply type:
exploreSHARK()
Each time you install a new version of the shaRk, or want to access an updated version of the SHARK database, include the "download=TRUE" argument.
?getSHARK
?addDyntaxa
?annotateSHARK
zoodata <- getSHARK("Zooplankton") %>%
addDyntaxa() %>%
annotateSHARK()
shaRk version 0.1 is built under R version 3.5.1. It builds upon tidyverse, httr, jsonlite, shiny and flexdashboard. Package dependencies will be installed together with shaRk.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.