View source: R/process-redcolobus-data.R
Function to calculate for all individuals, for each month the number of lines (i.e. observations) where A was Individual with B as NN
1 2 3 4 5 6 7 | calc_ind_NN_together(
ind_nn_single_timeperiod,
dyad_table,
dyad_matrix,
max_nn_dist,
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 |
max_nn_dist |
The maximum distance for which an individual is still considered NN. Default is 5 (m) |
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.