pipe_select_links: Select links

pipe_select_linksR Documentation

Select links

Description

Select links

Usage

pipe_select_links(
  graf,
  top = NULL,
  bottom = NULL,
  recalculate_factors = T,
  recalculate_links = T
)

Arguments

graf

A mapfile representing a causal map. A mapfile is a tidygraph, which consists of a table of edges linked to a table of nodes, with an optional additional table of statements. In this package, nodes are called 'factors' and edges are called 'links.'

top

Bundle the links and select only the 'top' links in terms of their frequency

bottom

Bundle the links and select only the 'bottom' links in terms of their frequency

is_proportion

Examples

select links top=20 should keep all the links within the 20 fattest bundles/sets of links with the most links in each bundle.
But previously the algorithm actually combined them into 20 individual links (i.e. create radically fewer actual links)
and just remembered the frequency.
Now, it keeps the individual links (so a map with select links top =3 might still have 3000 actual links if there were 1000 from A to B
and 1000 from B to C and 1000 from C to D. By default, the Interactive and
Print maps would indeed combine these into three thick pipes for performance sake, but there would still be 3000 links there somewhere.

stevepowell99/CausalMapFunctions documentation built on Oct. 12, 2023, 11:13 a.m.