All relevant package dependencies are listed in the DESCRIPTIONS file under Imports.
When all indicators have been added to the repo we can provide a list of package versions
The survey data will pulled from the Oracle database via a cron job (quarterly?) using R function
SOEworkflows::get_survey_data(channel,outputPathDatasets)
channelis a connection object created usingROracle::dbConnect()outputPathDatasetsis the path to the folder where "raw" data is stored (EDAB_Datasets)- Currently the data sets created are:
surveyNoLengths.rds- used inaggregate_biomassbigelowData.rds- used insurvey_shannonalbatrosData.rds- used insurvey_shannoncondition.rds- used incondition
To run the "workflow" below, it is assumed that the "raw" survey data has been pulled using the
get_survey_data function above.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_aggregate_biomass(outputPath,inputPathSurvey,inputPathSpecies)
inputPathSpeciesis the path to static data setEDAB_Datasets/SOE_species_list_24.rds.inputPathSurveyis the path to the dynamically created survey dataEDAB_Datasets/surveyNoLengths.rds.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded asaggregate_biomass.rdsto match theecodatapackage dataset
To run the "workflow" below, it is assumed that the "raw" survey data has been pulled using the
get_survey_data function above.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_survey_shannon(outputPath,inputPathBigelow,inputPathAlbatross)
inputPathBigelowis the path to static data setEDAB_Datasets/bigelowData.rds.inputPathAlbatrossis the path to the dynamically created survey dataEDAB_Datasets/albatrossData.rds.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded assurvey_shannon.rdsto match theecodatapackage dataset
To run the "workflow" below, it is assumed that the "raw" survey data has been pulled using the
get_survey_data function above.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_exp_n(outputPath,inputPathBigelow,inputPathAlbatross)
inputPathBigelowis the path to static data setEDAB_Datasets/bigelowData.rds.inputPathAlbatrossis the path to static data setEDAB_Datasets/albatrossData.rds.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded asexp_n.rdsto match theecodatapackage dataset
To run the "workflow" below, it is assumed that the "raw" survey data has been pulled using the
get_survey_data function above.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_species_dist(outputPath,inputPathSurvey,inputPathSpecies)
inputPathSpeciesis the path to static data setEDAB_Datasets/SOE_species_list_24.rds.inputPathSurveyis the path to the dynamically created survey dataEDAB_Datasets/surveyNoLengths.rds.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded asspecies_dist.rdsto match theecodatapackage dataset
The commercial data will pulled from the Oracle database via a cron job (quarterly?) using R function
SOEworkflows::get_commercial_data(channel,outputPathDatasets)
channelis a connection object created usingROracle::dbConnect()outputPathDatasetsis the path to the folder where "raw" data is stored (EDAB_Datasets)- Currently the data sets created are:
commercial_comdat.rds- used incomdatcommercial_bennet.rds- used inbennet
To run the "workflow" below, it is assumed that the commercial data has been pulled using the
get_commercial_data function above.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_bennet(inputPathBennet, inputPathSpecies, outputPath)
inputPathSpeciesis the path to static data setEDAB_Datasets/SOE_species_list_24.rds.inputPathBennetis the path to the dynamically created commercial dataEDAB_Datasets/commercial_benent.rds.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded asbennet.rdsto match theecodatapackage dataset
To run the "workflow" below, it is assumed that the commercial data has been pulled using the
get_commercial_data function above and that menhaden data have been pulled using the
create_menhaden_input.R script in the folder data-raw.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_comdat(comdat_path, input_path_species, menhaden_path, outputPathDataSets)comdat_pathis the path to the raw, comprehensive commercial landings data file, e.g.,EDAB_Datasets/commercial_comdat.rds.input_path_speciesis the path to the species list used for grouping, e.g.,EDAB_Datasets/SOE_species_list_24.rds.menhaden_pathis the path to the Menhaden landings data output by create_create_menhaden_input.R.outputPathDataSetsis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded ascomdat.rdsto match theecodatapackage dataset
To run the "workflow" below, it is assumed that the stocksmart R package has been updated to include recent assessment data.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_stock_status(inputPath, outputPath)
inputPathis the path to static data setEDAB_Datasets/decoder.csv.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded asstock_status.rdsto match theecodatapackage dataset
To run the "workflow" below, it is assumed that the static input file from Kevin Friedland is present.
Note: the following function resides in the folder data-raw and is NOT part of the package
workflow_trans_dates(inputPath, outputPath)
inputPathis the path to static data setEDAB_Datasets/TS_SHP_adv rep MAB GOM GBK NES SCSPoly.csv.outputPathis the path to folder where indicator data should be saved,EDAB_Indicators. The rds file name is hardcoded astrans_dates.rdsto match theecodatapackage dataset