Process for generation and optionally extraction of the FDI table D (NAO OFR discards length).

fdi_tabled_discard_length(
  observe_con,
  period,
  ocean,
  program,
  flag,
  fao_area_file_path,
  tablea_catch_summary,
  template_checking = FALSE,
  template_year = NULL,
  table_export_path = NULL
)

Arguments

observe_con

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

period

integer expected. Year(s) period for data extraction(s).

ocean

character expected. Ocean(s) of interest.

program

character expected. Programs of interest.

flag

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

fao_area_file_path

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

tablea_catch_summary

list expected. Output "table_a" of the function fdi_tablea_catch_summary.

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.

Value

The process returns a list with the FDI table D inside.