View source: R/1_Manipulate_table_function.R
gather.abund.df | R Documentation |
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.
gather.abund.df(list_abund_df, species_nm, time_start, time_stop)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.