get_sim | R Documentation |
Calculates the similarity of a group within a population by applying the function specified by group_sim
to the pairwise similarities of group members.
get_sim(pop_sim, ...)
## S3 method for class 'integer'
get_sim(pop_sim, ...)
## S3 method for class 'numeric'
get_sim(pop_sim, group = seq(length(pop_sim)), ...)
## S3 method for class 'matrix'
get_sim(pop_sim, group = seq(nrow(pop_sim)), ...)
## S3 method for class 'sim_index'
get_sim(pop_sim, group = seq(pop_sim[["N"]]), ...)
## Default S3 method:
get_sim(pop_sim, group, type, group_sim = "average", ...)
pop_sim |
An object representing the similarities of an indexed population of objects. |
... |
Other arguments to be passed to |
group |
Character or integer vector specifying names/indices of subgroup for which to calculate a group similarity p-value. |
type |
Either "matrix", "sim_index" or "numeric" - the type of the |
group_sim |
String Either "average" or "min", determining how to calculate the similarity of a group of term sets over all pairwise combinations of group members |
Numeric value of group similarity
get_sim_p
sample_group_sim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.