prep_red_colobus_ind_nn_data_one_period: 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: Trim the data frame from start to end of a single period, and only keep relevant columns

Usage

1
2
3
4
5
6
7
8
9
prep_red_colobus_ind_nn_data_one_period(
  scandata_df,
  from_date,
  to_date,
  presence_df,
  id_sex_df,
  filter_adults = TRUE,
  keep_activity_interactant = FALSE
)

Arguments

scandata_df

Data frame with red colobus scan data

from_date

Start and end date of analyzed period of time. Format should be "yyyy-mm-dd". First and last date will be included!

to_date

Start and end date of analyzed period of time. Format should be "yyyy-mm-dd". First and last date will be included!

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'

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


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