Description Usage Arguments Details Value See Also Examples
Summarize the predicates present in a collection of paths
1 | summarize_predicates(graph, object, print = TRUE)
|
graph |
The SemMed graph |
object |
A vertex sequence ( |
print |
If |
Because predicates are edge features, it is assumed that by using
summarize_predicates
the nodes contained in object
are
ordered (paths). This is why summarize_semtypes
has the
is_path
argument, but summarize_predicates
does not.
summarize_predicates
tabulates edge predicates across paths
corresponding to each from
-to
pair in object
.
A tbl
where each row corresponds to a
from
-to
pair in object
. The last column is a
list-column containing table
's of predicate counts.
summarize_semtypes
for tabulating
semantic types of nodes in paths or other node collections
1 2 3 4 5 6 | data(g_mini)
node_cortisol <- find_nodes(g_mini, "Serum cortisol")
node_stress <- find_nodes(g_mini, "Chronic Stress")
paths <- find_paths(g_mini, from = node_cortisol, to = node_stress)
summarize_predicates(g_mini, paths)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.