| summarize_predicates {rsemmed} | R Documentation |
Summarize the predicates present in a collection of paths
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
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)