| edf2CLD | R Documentation |
Convert edge data frame into a causal loop diagram (CLD) object
edf2CLD(edf, ndf, ...)
edf |
An edge data frame containing at least character columns |
ndf |
An optional node data frame containing at least a character column |
The function searches edf for columns named polarity and
weight. If these are found, then these values are passed to CLD()
instead of whatever values may be passed as arguments to this function). See example.
For information on formatting nodes separately according to the group variable,
see help(CLD).
A newly-created CLD object.
Jarrod E. Dalton
CLD().
#note precedence in taking the polarity argument here
edf2CLD(tibble(from=c("a","a"), to=c("b","c"), polarity=-1), polarity=1)
## Not run:
edf2CLD(data.frame(from="a", to=c("b","c"))) #produces error
edf2CLD(data.frame(from="a", to=c("b","c"), stringsAsFactors=FALSE))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.