ワンクリックで
networkdynamic
R networkDynamic package for temporal networks. Use for creating and manipulating dynamic/temporal networks.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
R networkDynamic package for temporal networks. Use for creating and manipulating dynamic/temporal networks.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
R language data analysis and visualization skill. Use when user asks to (1) run R scripts or code, (2) install/update R packages, (3) perform data analysis with R, (4) create visualizations with ggplot2/plotly, (5) statistical analysis, (6) data manipulation with tidyverse/dplyr/data.table. Triggers on keywords like "R语言", "R脚本", "ggplot", "tidyverse", "数据分析", "可视化".
R DALEX package for model explanations. Use for explaining complex machine learning models.
R iml package for interpretable ML. Use for model-agnostic interpretability methods.
R lime package for local explanations. Use for explaining individual predictions with local interpretable models.
R packages for ML interpretability. Use for explaining and interpreting machine learning models.
R vip package for variable importance. Use for computing and visualizing variable importance scores.
| name | networkDynamic |
| description | R networkDynamic package for temporal networks. Use for creating and manipulating dynamic/temporal networks. |
Dynamic extensions of the network class.
library(networkDynamic)
# From static network
dnet <- networkDynamic(base.net = static_net)
# From network list
dnet <- networkDynamic(
network.list = list(net_t1, net_t2, net_t3),
onsets = c(0, 1, 2),
termini = c(1, 2, 3)
)
# Empty dynamic network
dnet <- networkDynamic(network.initialize(10))
# Activate edges
activate.edges(dnet, onset = 0, terminus = 5, e = 1:10)
# Deactivate edges
deactivate.edges(dnet, onset = 3, terminus = 5, e = 5:10)
# Add edge with timing
add.edges.active(dnet,
tail = 1, head = 2,
onset = 0, terminus = 10)
# Query edge activity
is.active(dnet, at = 2, e = 1:10)
get.edge.activity(dnet, e = 1)
# Activate vertices
activate.vertices(dnet, onset = 0, terminus = 10, v = 1:5)
# Deactivate vertices
deactivate.vertices(dnet, onset = 5, terminus = 10, v = 3:5)
# Query vertex activity
is.active(dnet, at = 2, v = 1:10)
get.vertex.activity(dnet, v = 1)
# At specific time
net_t2 <- network.extract(dnet, at = 2)
# Time interval
net_interval <- network.extract(dnet, onset = 1, terminus = 3)
# Collapse to static
static <- network.collapse(dnet, onset = 0, terminus = 10)
# Set dynamic attribute
activate.vertex.attribute(dnet, "status",
value = "active",
onset = 0, terminus = 5,
v = 1:5)
# Get attribute at time
get.vertex.attribute.active(dnet, "status", at = 2)
# Get activity spells
get.edge.activity(dnet, e = 1, as.spellList = TRUE)
get.vertex.activity(dnet, v = 1, as.spellList = TRUE)
# Activity duration
get.edge.activity(dnet, e = 1)
# To/from data frame
df <- as.data.frame(dnet)
dnet <- as.networkDynamic(df)