SHARK4R1.0.3 package

Accessing and Validating Marine Environmental Data from 'SHARK' and Related Databases

read_shark_deliv

Read SHARK Excel delivery files (.xls or .xlsx)

read_shark

Read SHARK export files (tab- or semicolon-delimited, plain text or zi...

run_qc_app

Launch the SHARK4R Bio-QC Tool

match_dyntaxa_taxa

Match Dyntaxa taxon names

match_dyntaxa

Taxon matching using Dyntaxa (https://www.dyntaxa.se/)

match_station

Match station names against SMHI station list

match_taxon_name

Match Dyntaxa taxon names

match_worms_taxa

Retrieve WoRMS records by taxonomic names with retry logic

match_wormstaxa

Taxon matching using WoRMS (http://www.marinespecies.org/)

nominal_station

Check if stations are reported as nominal positions

parse_scientific_names

Parse scientific names into genus and species components.

plot_map_leaflet_deliv

Create a Leaflet map.

plot_map_leaflet

Create an interactive Leaflet map of sampling stations

positions_are_near_land

Determine if positions are near land

lookup_xy

Lookup spatial information for geographic points

match_algaebase_genus

Search AlgaeBase for information about a genus of algae

match_algaebase_species

Search AlgaeBase for information about a species of algae

match_algaebase_taxa

Search AlgaeBase for taxonomic information

match_algaebase

Search AlgaeBase for taxonomic information

read_ptbx

Read a Plankton Toolbox export file

add_worms_taxonomy

Add WoRMS taxonomy hierarchy to AphiaIDs or scientific names

assign_phytoplankton_group

Assign phytoplankton group to scientific names

check_bacterial_carbon

Uses data from national marine monitoring for the last 5 years to iden...

check_bacterial_concentration

Uses data from national marine monitoring for the last 5 years to iden...

check_bacterial_production

Uses data from national marine monitoring for the last 5 years to iden...

check_Bacterioplankton

Check if the required and recommended datatype-specific SHARK system f...

check_chlorophyll_conc

Uses data from national marine monitoring for the last 5 years to iden...

check_Chlorophyll

Check if the required and recommended datatype-specific SHARK system f...

check_code_proj

Check matches of reported codes in SMHI's SHARK codelist

check_codes

Check matches of reported codes in SMHI's SHARK codelist

check_datatype

Validate SHARK system fields in a data frame

check_deliv_Bacterioplankton

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Chlorophyll

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Epibenthos

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_EpibenthosDropvideo

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_GreySeal

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_HarbourPorpoise

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_HarbourSeal

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_PhysicalChemical

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Phytoplankton

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Picoplankton

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_PrimaryProduction

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_RingedSeal

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_SealPathology

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Sedimentation

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Zoobenthos

Check if the required and recommended datatype-specific SHARK system f...

check_deliv_Zooplankton

Check if the required and recommended datatype-specific SHARK system f...

check_depth

Validate depth values against bathymetry and logical constraints

check_epibenthos_abundclass_logical

Check if Abundance class exceeds 10

check_epibenthos_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_epibenthos_cover_logical

Check if Epibenthos cover exceeds 100%

check_epibenthos_coverclass_logical

Check if Epibenthos cover class exceeds 10

check_epibenthos_coverpercent_logical

Check if Epibenthos cover (%) exceeds 100%

check_epibenthos_dryweight

Uses data from national marine monitoring for the last 5 years to iden...

check_epibenthos_sedimentdepos_logical

Check if Sediment deposition cover (%) exceeds 100%

check_epibenthos_specdistr_maxdepth

Uses data from national marine monitoring for the last 5 years to iden...

check_epibenthos_specdistr_mindepth

Uses data from national marine monitoring for the last 5 years to iden...

check_epibenthos_totcover_logical

Check if Epibenthos total cover exceeds 100%

check_Epibenthos

Check if the required and recommended datatype-specific SHARK system f...

check_EpibenthosDropvideo

Check if the required and recommended datatype-specific SHARK system f...

check_fields

Validate SHARK data fields for a given datatype

check_greyseal_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_GreySeal

Check if the required and recommended datatype-specific SHARK system f...

check_HarbourPorpoise

Check if the required and recommended datatype-specific SHARK system f...

check_harbourseal_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_HarbourSeal

Check if the required and recommended datatype-specific SHARK system f...

check_harbporp_positivemin

Uses data from national marine monitoring for the last 5 years to iden...

check_logical_parameter

General checker for parameter-specific logical rules

check_nominal_station

Check if stations are reported as nominal positions

check_onland

Check whether points are located on land

check_outliers

General outlier check function for SHARK data

check_parameter_rules

Check parameter values against logical rules

check_PhysicalChemical

Check if the required and recommended datatype-specific SHARK system f...

check_phytoplankton_abund

Uses data from national marine monitoring for the last 5 years to iden...

check_phytoplankton_biovol

Uses data from national marine monitoring for the last 5 years to iden...

check_phytoplankton_carbon

Uses data from national marine monitoring for the last 5 years to iden...

check_phytoplankton_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_Phytoplankton

Check if the required and recommended datatype-specific SHARK system f...

check_picoplankton_abundance

Uses data from national marine monitoring for the last 5 years to iden...

check_picoplankton_biovol

Uses data from national marine monitoring for the last 5 years to iden...

check_picoplankton_carbon

Uses data from national marine monitoring for the last 5 years to iden...

check_picoplankton_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_Picoplankton

Check if the required and recommended datatype-specific SHARK system f...

check_primaryproduction_carbonprod_hour

Uses data from national marine monitoring for the last 5 years to iden...

check_primaryproduction_carbonprod

Uses data from national marine monitoring for the last 5 years to iden...

check_primaryproduction_carbonprodlight

Uses data from national marine monitoring for the last 5 years to iden...

check_PrimaryProduction

Check if the required and recommended datatype-specific SHARK system f...

check_ringedseal_calccounted

Uses data from national marine monitoring for the last 5 years to iden...

check_RingedSeal

Check if the required and recommended datatype-specific SHARK system f...

check_SealPathology

Check if the required and recommended datatype-specific SHARK system f...

check_Sedimentation

Check if the required and recommended datatype-specific SHARK system f...

check_setup

Download and set up SHARK4R support files

check_station_distance

Check station distances against SMHI station list

check_value_logical

Identify non-numeric or non-logical values in measurement data

check_zero_positions

Identify samples with zero-valued station coordinates

check_zero_value

Identify records with zero-valued measurement data

check_zoobenthos_abund

Uses data from national marine monitoring for the last 5 years to iden...

check_zoobenthos_BQIm_logical

Check logical relationship between Abundance and BQIm

check_zoobenthos_BQIm

Uses data from national marine monitoring for the last 5 years to iden...

check_zoobenthos_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_zoobenthos_wetweight_logical

Check if wet weight measurements are zero

check_zoobenthos_wetweight

Uses data from national marine monitoring for the last 5 years to iden...

check_Zoobenthos

Check if the required and recommended datatype-specific SHARK system f...

check_zooplankton_abund

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_carbon

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_counted

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_length_mean

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_length_median

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_wetweight_area

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_wetweight_volume

Uses data from national marine monitoring for the last 5 years to iden...

check_zooplankton_wetweight

Uses data from national marine monitoring for the last 5 years to iden...

check_Zooplankton

Check if the required and recommended datatype-specific SHARK system f...

clean_shark4r_cache

Clean SHARK4R cache by file age and session

construct_dyntaxa_table

Construct a hierarchical taxonomy table from Dyntaxa

convert_ddmm_to_dd

Convert coordinates from DDMM format to decimal degrees

defunct

Defunct functions

find_required_fields

Find required fields in a SHARK delivery template

get_algaebase_genus

Search AlgaeBase for information about a genus of algae

get_algaebase_species

Search AlgaeBase for information about a species of algae

get_delivery_template

Get a delivery template for a SHARK datatype

get_dyntaxa_dwca

Download and read Darwin Core Archive files from Dyntaxa

get_dyntaxa_parent_ids

Get parent taxon IDs for specified taxon IDs from Dyntaxa

get_dyntaxa_records

Get taxonomic information from Dyntaxa for specified taxon IDs

get_hab_list

Download the IOC-UNESCO Taxonomic Reference List of Harmful Micro Alga...

get_nomp_list

Get the latest NOMP biovolume Excel list

get_nua_external_links

Retrieve external links or facts for taxa from Nordic Microalgae

get_nua_harmfulness

Retrieve harmfulness for taxa from Nordic Microalgae

get_nua_media_links

Retrieve and extract media URLs from Nordic Microalgae

get_nua_taxa

Retrieve taxa information from Nordic Microalgae

get_peg_list

Get the latest EG-Phyto/PEG biovolume Excel list

get_shark_codes

Get SHARK codelist from SMHI

get_shark_data

Retrieve tabular data from SHARK

get_shark_datasets

Download SHARK dataset zip archives

get_shark_options

Retrieve available search options from SHARK

get_shark_statistics

Summarize numeric SHARK parameters with ranges and outlier thresholds

get_shark_table_counts

Retrieve SHARK data table row counts

get_toxin_list

Retrieve marine biotoxin data from IOC-UNESCO Toxins Database

get_worms_classification

Retrieve hierarchical classification from WoRMS

get_worms_records_name

Retrieve WoRMS records by taxonomic names with retry logic

get_worms_records

Retrieve WoRMS records

get_worms_taxonomy_tree

Retrieve hierarchical taxonomy data from WoRMS

ifcb_is_near_land

Determine if positions are near land

ifcb_which_basin

Determine if points are in a specified sea basin

is_in_dyntaxa

Check if taxon names exist in Dyntaxa

load_shark4r_fields

Load SHARK4R fields from GitHub

load_shark4r_stats

Load SHARK4R statistics from GitHub

load_station_bundle

Load station database (station.txt) from path, NODC_CONFIG, or package...

scatterplot

Scatterplot with optional horizontal threshold lines

shark_read_deliv_xls

Read .xls files delivered to SHARK

shark_read_deliv

Read .xlsx files delivered to SHARK

shark_read_zip

Read zip archive and unzip tab delimited files downloaded from SHARK

shark_read

Read tab delimited files downloaded from SHARK

SHARK4R-package

SHARK4R: Accessing and Validating Marine Environmental Data from 'SHAR...

translate_shark_datatype

Translate SHARK4R datatype names

update_dyntaxa_taxonomy

Update SHARK taxonomy records using Dyntaxa

update_worms_taxonomy

Retrieve and organize WoRMS taxonomy for SHARK Aphia IDs

which_basin

Determine if points are in a specified sea basin

Provides functions to retrieve, process, analyze, and quality-control marine physical, chemical, and biological data. The main focus is on Swedish monitoring data available through the 'SHARK' database <https://shark.smhi.se/en/>, with additional API support for 'Nordic Microalgae' <https://nordicmicroalgae.org/>, 'Dyntaxa' <https://artfakta.se/>, World Register of Marine Species ('WoRMS') <https://www.marinespecies.org>, 'AlgaeBase' <https://www.algaebase.org>, OBIS 'xylookup' web service <https://iobis.github.io/xylookup/> and Intergovernmental Oceanographic Commission (IOC) - UNESCO databases on harmful algae <https://www.marinespecies.org/hab/> and toxins <https://toxins.hais.ioc-unesco.org/>.

  • Maintainer: Anders Torstensson
  • License: MIT + file LICENSE
  • Last published: 2026-01-14