count_pairs {CommKern} | R Documentation |
Count pairs
Description
Description of the count pairs function.
Usage
count_pairs(a, b, order)
Arguments
a |
a vector of classifications |
b |
a vector of classifications |
order |
a vector of permutations (coming from the order() function in base R) |
Details
A function to count pairs of integers or factors and identify the pair counts
Value
a list of five different vectors:
pair_nb
: a vector containing counts of nodes within all possible classification pairs from partitions a and bpair_a
: a vector of the same length as pair_nb, specifying the order of classifications in pair_nb from partition apair_b
: a vector of the same length as pair_nb, specifying the order of classifications in pair_nb from partition ba_nb
: a vector containing counts of nodes within each class for partition ab_nb
: a vector containing counts of nodes within each class for partition b