Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/list_metadata_datasets.R
This function outputs the metadata of the data available in the Sardara database.
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)
|
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. |
Three types of data are available in Sardara database:
"raw_dataset": Datasets. Three types of datasets are available:
"catch": Quantity of of fish in number or biomass harvested in a given stratum
"effort": Quantity of effort (expressed in a given unit such as number of sets, number of fishing hours, number of hooks, etc.) exerted in a given stratum
"catch-at-size": Quantity of fish at a given size (or size class) harvested in a given stratum
"codelist": Reference tables with at least codes, and usualy labels associated to these codes.
"mapping": Tables that establishes mappings / correspondences between codes from various reference tables.
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
list_metadata_datasets
lists the metadata of all the types of datasets (raw_dataset, codelists, mappings)
list_metadata_raw_datasets
lists only the metadata of raw_datasets
list_metadata_codelists
lists only the metadata of the code lists
list_metadata_mappings
lists only the metadata of the mappings between code lists
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
Paul Taconet, paul.taconet@ird.fr
Other discover data: get_codelist_of_dimension
,
get_dsd_of_dataset
,
list_dataset_available_dimensions
,
list_variable_available_dimensions
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.