Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions R/data.r
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,21 @@ NULL # "epigames"
#' A directed dynamic graph with 594 vertices and 15 time periods. The attributes
#' in the graph are described in \code{\link{epigames}}.
#'
#' By default, this \code{diffnet} object is **non-cumulative** (each slice represents
#' ephemeral daily contacts) and **valued** (edge weights represent contact duration in seconds).
#'
#' To reconstruct the classic cumulative/binarized network, you can run:
#'
#' \preformatted{
#' epigames_cumul <- epigamesDiffNet
#'
#' # 1. Accumulate the history across time periods
#' epigames_cumul$graph <- Reduce("+", epigames_cumul$graph, accumulate = TRUE)
#'
#' # 2. Apply a logical cut-off to binarize the network
#' epigames_cumul$graph <- lapply(epigames_cumul$graph, function(m) { m@x[] <- 1; m })
#' }
#'
#' Non-adopters have \code{toa = NA}.
#'
#' @format A \code{\link{diffnet}} class object.
Expand Down
Loading
Loading