mean_ai: Mean of AI series

mean_aiR Documentation

Mean of AI series

Description

mean_ai gather the different AI series (/!\ MAX 5 SERIES) in one single table, standardise one mean AI series and plot several graphs

Usage

mean_ai(
  data_IA,
  MOY = TRUE,
  vect_year_elim,
  type_ref,
  type_other,
  fish_power,
  title
)

Arguments

data_IA

data table containing the year in the first column, and the different AI series on the following ones

MOY

if TRUE, then mean_3years is run

vect_year_elim

vector containing the years to delete. Else, empty vector c()

type_ref

Select AI for standardisation.

type_other

Select others AI

fish_power

A vector containing technological creep for each AI in type_other. Not applied if equal zero.

Examples

data(data_IA_JABBA)
data_IA_test <- data_IA_JABBA %>%  dplyr:::select(c(annee, ScientificSurvey_SEN, Artisanal_SEN))
mean_ai(data_IA=data_IA_test, MOY=T, vect_year_elim=c(), type_ref = "ScientificSurvey_SEN", type_other = "Artisanal_SEN", fish_power = c(0.05), title = "1st Try")


polehalieutique/demerstem documentation built on Aug. 4, 2024, 5:12 a.m.