compute.maxN.combcam: Create a dataframe containing maxN values for the studied...

View source: R/6_SmaxN_across_camnb_functions.R

compute.maxN.combcamR Documentation

Create a dataframe containing maxN values for the studied species and the different combinaison of cameras

Description

This function computes a dataframes containing maxN,SmaxN, maxN_row, for a given set of species and all the combinaisons of a given set of cameras

Usage

compute.maxN.combcam(abund_combcam_list, dist_df, fish_speed, analysis_type)

Arguments

abund_combcam_list

a list gathering for a given pose for each combination of cameras (129 ICRS and 298 combinations paper). Retrieved from the create.abund.list.camcombn() function.

dist_df

a numerical dataframe containing the distance between each pair of camera. There are as many rows as there are cameras and there are as many columns as there are cameras, thus the dataframe is symmetrical and the diagonal is filled with 0. Rows names and columns names must be cameras names. BE CAREFUL that the cameras are the same and in the same order in the dist_df and in the abund_df!

fish_speed

a numerical value refering to the maximal speed of the studied species. Speed must be given in meters per second. If the computation of maxN values should not take into account fish speed (that is to say if the camera pooling is done at the second level), fish_speed = NULL

analysis_type

type of analysis to do as this function can be used either for the combination of camera analysis or for the timespan analysis. Can be either "combcam" for the analysis of camera combination or "timespan" for the analysis of timespans.

Value

a dataframe containing for each combination of cameras, maxN values


CmlMagneville/SmaxNanalysis documentation built on Jan. 28, 2024, 11:20 p.m.