gather.abund.df: Create a dataframe with abundance data for different cameras...

View source: R/1_Manipulate_table_function.R

gather.abund.dfR Documentation

Create a dataframe with abundance data for different cameras and a given species

Description

This function computes a dataframe containing the abundance of a given species for a given period of time. The user gives as many dataframes as there are cameras, a period of time and a species name and the function checks on which cameras the species has been seen and gathers the dataframes of these cameras.

Usage

gather.abund.df(list_abund_df, species_nm, time_start, time_stop)

Arguments

list_abund_df

a list containing as many dataframes as there are cameras. Each dataframe is a species*abundance dataframe and contains the abundance of different species (columns) across continuous time (rows)

species_nm

a character string refering to the name of the species for which dataframes must be gathered. Be sure that species names is correctly spelled as in the vect_abund_df dataframes.

time_start

a character string refering to the time when the dataframe should begin.

time_stop

a character string refering to the time when the dataframe should stop.

Value

the function returns a dataframe containing the abundance of a given species for a given period of time. There are as many columns as there are cameras and there are as many rows as there are timesteps (second) between time_start and time_stop.


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