| get_edge_list | R Documentation |
Extract individual-level transition counts as an edge list from a tna object.
get_edge_list(x, by_individual = TRUE, drop_zeros = TRUE)
x |
A tna object created by |
by_individual |
Logical. If TRUE (default), returns edge list with individual IDs. If FALSE, aggregates across all individuals. |
drop_zeros |
Logical. If TRUE (default), excludes edges with zero count. |
A data frame with columns:
Individual identifier (only if by_individual = TRUE)
Source state label
Target state label
Number of transitions
extract_motifs() for motif analysis using edge lists
Other motifs:
extract_motifs(),
extract_triads(),
motif_census(),
motifs(),
plot.cograph_motif_analysis(),
plot.cograph_motifs(),
subgraphs(),
triad_census()
Mod <- tna::tna(tna::group_regulation)
# Get edge list by individual
edges <- get_edge_list(Mod)
head(edges)
# Aggregate across individuals
agg_edges <- get_edge_list(Mod, by_individual = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.