ch.moralsGetDirOverlapForAllProbes | R Documentation |
This function calculates the directional overlap for all probes and ensures every combination is present in both directions (e.g., itemA vs itemB and itemB vs itemA). Thus, there will be duplicate combinations with oppoisite directional overlaps.
ch.moralsGetDirOverlapForAllProbes(
data,
probe1Col,
probe2Col,
overlapCol,
directionCol
)
data |
a dataframe containing overlap data for probe combinations. |
probe1Col |
a string the specifies the column name in "data" that contains the first probe item. |
probe2Col |
a string the specifies the column name in "data" that contains the second probe item. |
overlapCol |
a string that specifies the name of the column in "data" that contains the overlap column. |
directionCol |
a string that specifies the name of the column in "data" that contains the direction column that indications the direction of the overlap. |
the dataframe (data), doubled in size because it adds the reverse order of the probes, with the directional overlap column (dirOverlap).
ch.moralsGetDirOverlapForAllProbes (overlapData, "IA1", "IB1", "overlap","direction")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.