prep_red_colobus_ind_nn_data: Prepare Red Colobus scandata for determination of association...

Description Usage Arguments

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

Description

Prepare Red Colobus scandata for determination of association indices based on Nearest Neighbours:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
prep_red_colobus_ind_nn_data(
  scandata_df,
  presence_df,
  id_sex_df,
  start_date,
  end_date,
  interval_length_month,
  filter_adults = TRUE,
  keep_activity_interactant = FALSE,
  ind_sex_included,
  nn_sex_included
)

Arguments

scandata_df

Data frame with red colobus scan data

presence_df

Dataframe created with 'get_presence_rc'

id_sex_df

Table with sex of individuals. This is the link table creates with 'create_link_table'

start_date

String for start date that can be coerced to date by 'as.Date'

end_date

String for end date that can be coerced to date by 'as.Date'

interval_length_month

Lenght of each interval in months.

filter_adults

Only keep lines where Individual and NN were adult?

keep_activity_interactant

If FALSE, re-sort columns and sort out activity, interactant, and inter_age_sex

ind_sex_included

Which indivuals (Male, Female) should be included?

nn_sex_included

Which nearest neighbours (Male, Female) should be included?


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