calc_ind_NN_together: Function to calculate for all individuals, for each month the...

Description Usage Arguments

View source: R/process-redcolobus-data.R

Description

Function to calculate for all individuals, for each month the number of lines (i.e. observations) where A was Individual with B as NN

Usage

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
)

Arguments

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


urskalbitzer/daginR documentation built on Jan. 21, 2020, 1:26 a.m.