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
)

Arguments

dataframe

data.frame expected. Csv or output of the function data_extraction, which must be done before using the fishing_activity() function.

graph_type

character expected. "number" or "table." Number by default.

reported_year

integer expected. Write the wanted year of the report.

selected_country

integer expected. Country code to select the list of boat to count. If NULL give all the vessel for the given year.

selected_ocean

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'

selected_harbour

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'

Value

The function return a table.

Details

The input dataframe frome sql must contain all these columns for the function to work [see referentials]:

  • program

  • ocean_label

  • fleet

  • vessel_type

  • vessel_label

  • departure

  • arrival

  • landing_date

  • activity_date

  • port_departure

  • port_arrival