View source: R/window_functions_graph.R
This function will generate networks in parallel using a dataframe with time constraints.
1 2 |
data |
A dataframe with relational data in the first two columns, and a time stamp in the third column. An optional column with a weight can be added if there is a duration or magnitude for each interaction (column name for this should be set to 'weight'). Note: time stamps should be in ymd or ymd_hms format. The lubridate package can be very helpful in organizing times. |
window.ranges |
The dataframe containing the start and end times of each window to create a network from. |
directed |
Whether to consider the networks are directed or not. |
effortFun |
This is a function that takes as input the data within a window of time and returns the total sampling effort. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.