table_pres_abs: Creating the table used for the GLMs

View source: R/table_pres_abs.R

table_pres_absR Documentation

Creating the table used for the GLMs

Description

table_pres_abs returns the table used as an argument in the glm modeling. It creates the i_ab and the presence columns, and apply the modality selection functions.

Usage

table_pres_abs(tab, esp, list_param, var_eff_list, espece_id, catch_col, limit)

Arguments

tab

Table with the captures, fishing efforts and associated parameters

esp

exact name of the studied species

list_param

list of the tested parameters

var_eff_list

list of the possible fishing effort column

espece_id

exact name of the column indicating the species

catch_col

exact name of the column indicating the catches

limit

percentage representing the limit value under which a modality is removed

Value

the function return a table from which we can select only the presence = 1 to get the abundance table

Examples

data(tableau_sc)
table_pres_abs(tableau_sc, esp="PSEUDOTOLITHUS ELONGATUS", list_param=c("annee", "saison", "strate"), var_eff_list=c("surface_chalutee"), espece_id='nom_taxonomique', catch_col='total_capture', limit=0.0001)



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