View source: R/process-redcolobus-data.R
Function to calculate for all individuals, for each month the number of lines (i.e. observation) where A is Individual while A and B both in the group as adults
1 2 3 4 5 6 | calc_ind_while_NN_present(
ind_nn_single_timeperiod,
dyad_table,
dyad_matrix,
return_matrix = TRUE
)
|
ind_nn_single_timeperiod |
based on ind_nn_df created with 'prep_red_colobus_ind_nn_data()' |
dyad_table |
Data frame with all individuals observed during the time period indicating for each month whether they were adult |
dyad_matrix |
Empty matrix with all individual names as rows/cols |
return_matrix |
Should the result returned as matrix (default) or data frame |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.