Shortcut function to generate all FDI tables.

fdi_shortcut_function(
  balbaya_con,
  sardara_con,
  t3_con,
  observe_con,
  period,
  gear,
  flag,
  ocean,
  program,
  observe_bycatch_path,
  fao_area_file_path,
  eez_area_file_path,
  cwp_grid_1deg_1deg,
  cwp_grid_5deg_5deg,
  template_checking = FALSE,
  template_year = NULL,
  table_export_path = NULL
)

Arguments

balbaya_con

list expected. Output of the function postgresql_dbconnection for a connection to the balbaya database.

sardara_con

list expected. Output of the function postgresql_dbconnection for a connection to the sardara database.

t3_con

list expected. Output of the function postgresql_dbconnection for a connection to the t3 database.

observe_con

list expected. Output of the function postgresql_dbconnection for a connection to the observe database.

period

integer expected. Year period for data extractions.

gear

integer. Gear(s) selection for data extractions.

flag

integer expected. Flag(s) selection for data extractions.

ocean

character expected. Ocean(s) of interest.

program

character expected. Programs of interest.

observe_bycatch_path

character expected. Directory path of the bycatch data extractions. Check this input with Philippe Sabarros (philippe.sabarros@ird.fr).

fao_area_file_path

character expected. File path of the FAO area grid. The file format has to be .Rdata.

eez_area_file_path

character expected. File path of the EEZ area grid. The file format has to be .Rdata.

cwp_grid_1deg_1deg

character expected. File path of the CWP area grid of 1° by 1°. The file format has to be .Rdata.

cwp_grid_5deg_5deg

character expected. File path of the CWP area grid of 5° by 5°. The file format has to be .Rdata.

template_checking

logical expected. By default FALSE Checking FDI table generated regarding the official FDI template.

template_year

integer expected. By default NULL. Template year.

table_export_path

character expected. By default NULL. Directory path associated for the export.