Total sets events, sampled or not, with or without tuna landings.
set_total(
dataframe,
graph_type = "table",
reported_year = NULL,
selected_country = NULL,
selected_ocean = NULL,
selected_harbour = NULL
)
data.frame expected. Csv or output of the function data_extraction, which must be done before using the set_total() function.
character expected. 'number' or 'table'. Number by default.
integer expected. Write the wanted year of the report.
integer expected. Country code to select the list of boat to count. If NULL give all the vessel for the given year.
integer expected. Ocean code to select the list of boat to count. If NULL give all the vessel for the given year, works only for 'data_type' == 'observe'
integer expected. Harbour code to select the list of boat to count. If NULL give all the vessel for the given year, works only for 'data_type' == 'observe'
The function return a table.
The input dataframe frome sql must contain all these columns for the function to work [see referentials]:
program | ocean_label | fleet | vessel_label | vessel_type_code | departure | port_departure | landing_date | country_code | vessel_well_number | arrival | port_arrival
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
AVDTH Atlantique 1999-2022 (IRD) | Atlantic | FRA | VIA AVENIR | 6 | 2020-12-19 | ABIDJAN | 2021-01-15 | 1 | 4T | 2021-01-1 | ABIDJAN
AVDTH Atlantique 1999-2022 (IRD) | Atlantic | FRA | VIA AVENIR | 6 | 2020-12-19 | ABIDJAN | 2021-01-15 | 1 | 4T | 2021-01-1 | ABIDJAN
AVDTH Atlantique 1999-2022 (IRD) | Atlantic | FRA | VIA AVENIR | 6 | 2020-12-19 | ABIDJAN | 2021-01-15 | 1 | 4T | 2021-01-1 | ABIDJAN