View source: R/process-redcolobus-data.R
Prepare Red Colobus scandata for determination of association indices based on Nearest Neighbours:
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
)
|
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? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.