list_metadata_datasets: List metadata of the datasets available in Sardara database

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/list_metadata_datasets.R

Description

This function outputs the metadata of the data available in the Sardara database.

Usage

1
2
3
4
list_metadata_datasets(con,identifier=NULL,source_authority=NULL)
list_metadata_raw_datasets(con,identifier=NULL,source_authority=NULL,variable=NULL,spatial_resolution=NULL,level_of_correction=NULL)
list_metadata_codelists(con,identifier=NULL,source_authority=NULL,dimension=NULL)
list_metadata_codelists_mapping(con,identifier=NULL,source_authority=NULL,dimension=NULL)

Arguments

con

a wrapper of rpostgresql connection (connection to a database)

identifier

NULL or string. If not NULL, extracts the metadata of the identifier stated. In this case, all the other parameters will be ignored

source_authority

NULL or vector of strings. If not NULL, filter available datasets by the source authority in charge of producing the source statistics collated and harmonized. E.g. c("IOTC","ICCAT") will provide the metadata only for the data produced by IOTC and ICCAT.

dimension

NULL or vector of strings. For codelists and mappings only. If not NULL, filter available code lists / mappings by dimensions. E.g. c("gear","species") will provide the metadata only for code lists/mappings between code lists related to fishing gears and species.

variable

NULL or vector of strings. For datasets only. If not NULL, filter available code lists / mappings by variable. Three variables are available in the Tuna atlas database: catch, effort, catch_at_size

spatial_resolution

NULL or real. For datasets only. If not NULL, filter available datasets that are defined on that spatial resolution (in degrees).

level_of_correction

NULL or integer. For datasets only. If not NULL, filter available datasets that are have that level of correction provided.

Details

Three types of data are available in Sardara database:

The meaning of the columns of the raw dataset is provided in the data dictionary of raw datasets. ## to fill in this description when it is finalized

Value

a data.frame of metadata for the data available in Sardara database. The meaning of the columns of the output data.frame is provided in the data dictionary of the metadata table of Sardara database. ## to fill in this description when it is finalized

Author(s)

Paul Taconet, paul.taconet@ird.fr

See Also

Other discover data: get_codelist_of_dimension, get_dsd_of_dataset, list_dataset_available_dimensions, list_variable_available_dimensions

Examples

1
2
3
4
5
6
7
8
# List the available source IOTC datasets:
metadata_iotc_datasets<-list_metadata_datasets(db_connection_sardara_world(),source_authority=c("IOTC"))

# List the available code lists for WCPFC and IATTC
metadata_iccat_code_lists<-list_metadata_codelists(db_connection_sardara_world(),source_authority=c("WCPFC","IATTC"))

# List the available raw datasets of catch and of effort that are defined on 5° grid resolution
metadata_raw_dataset_catch_5deg<-list_metadata_raw_datasets(db_connection_sardara_world(),variable=c("catch","effort"),spatial_resolution=5)

ptaconet/rtunaatlas documentation built on Sept. 21, 2021, 10:43 p.m.