View source: R/temporal-network.R
| temporal_network | R Documentation |
Splits data by time windows and builds a separate network for each window using any network function.
temporal_network(
data,
network_fun,
...,
window = 3,
step = NULL,
strategy = "fixed",
time_col = "year"
)
data |
A data frame with a numeric time column. |
network_fun |
Function or character string naming a network function
(e.g., |
... |
Additional arguments passed to |
window |
Integer. Width of each time window in units of the time column (years, months, quarters, etc.). Default 3. |
step |
Integer or |
strategy |
Character. Time window strategy:
|
time_col |
Character. Name of the column containing the time variable.
Default |
A named list of data frames (edge lists). Names are window
labels like "2018-2020".
data(biblio_data)
# Fixed 3-year windows
temporal_network(biblio_data, author_network, "collaboration")
# Sliding window
temporal_network(biblio_data, author_network, "collaboration",
window = 2, strategy = "sliding")
# Cumulative
temporal_network(biblio_data, reference_network,
threshold = 0, strategy = "cumulative", window = 2)
# With string name
temporal_network(biblio_data, "keyword_network", window = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.