| edges.net_usem | R Documentation |
A single tidy verb for every network idiographic produces. Returns one row per
edge with columns network (e.g. "temporal", "contemporaneous",
"between"), from, to, weight – and, for GIMME, level
("group"/"individual"). Directed networks (temporal) keep every edge;
undirected networks (contemporaneous, between) report each pair once.
## S3 method for class 'net_usem'
edges(
x,
sort_by = "weight",
include_self = FALSE,
network = NULL,
n = NULL,
...
)
## S3 method for class 'var_result'
edges(
x,
sort_by = "weight",
include_self = FALSE,
network = NULL,
n = NULL,
...
)
edges(x, ...)
## S3 method for class 'netobject'
edges(
x,
sort_by = "weight",
include_self = FALSE,
network = NULL,
n = NULL,
...
)
## S3 method for class 'netobject_group'
edges(
x,
sort_by = "weight",
include_self = FALSE,
network = NULL,
n = NULL,
...
)
## S3 method for class 'gvar_result'
edges(
x,
sort_by = "weight",
include_self = FALSE,
network = NULL,
n = NULL,
...
)
## S3 method for class 'net_mlvar'
edges(
x,
sort_by = "weight",
include_self = FALSE,
network = NULL,
n = NULL,
...
)
## S3 method for class 'net_gimme'
edges(
x,
sort_by = "weight",
include_self = TRUE,
weight = c("prop", "coef"),
network = NULL,
n = NULL,
...
)
## S3 method for class 'var_list'
edges(x, ...)
## S3 method for class 'gvar_list'
edges(x, ...)
x |
A |
sort_by |
|
include_self |
Keep autoregressive self-loops? Default |
network |
Optional character vector selecting the network layer(s) to
return (e.g. |
n |
Optional integer. Keep only the first |
... |
Passed to methods. |
weight |
For GIMME only: |
A tidy data.frame, one row per edge.
set.seed(1)
d <- data.frame(id = 1, A = rnorm(80), B = rnorm(80), C = rnorm(80))
fit <- fit_graphical_var(d, vars = c("A", "B", "C"), id = "id", n_lambda = 8)
edges(fit) # tidy: network / from / to / weight
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.