addEdge | R Documentation |
addEdge(CLD) addNode(CLD) mediate(CLD) removeEdge(CLD) removeNode(CLD) setPolarity(CLD, edgeIndex, from, to, polarity) setWeight(CLD, edgeIndex, from, to, weight, ...)
CLD |
An object of class CLD (see |
edgeIndex |
A numeric vector of edge indices from the CLD object. |
from |
A vector of type character, providing the variables at the beginning of each (directional) causal link. |
to |
A vector of type character, containing the variables at the end of each
(directional) causal link. Must be the same length as |
polarity |
A numeric vector containing the edge polarities. Must be the same
length as |
weight |
A numeric vector containing the edge weights (e.g., importance
weights). Must be the same length as |
... |
additional arguments to |
The functions setPolarity()
and setWeight()
, accept either a
numeric vector of edgeIndex
values or equal-length character vectors
from
and to
. Polarity values of 0 represent situations where the
direction of the relationship may be different for different subgroups.
An updated CLD object.
Jarrod E. Dalton
addEdge(1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.