
Extract representative keywords from grouped nodes
Source:R/sniff_groups_keywords.R
sniff_groups_keywords.Rd
This function processes nodes grouped in a network (typically by community detection), and extracts the most frequent and the most distinctive keywords (using TF-IDF) from a descriptor field such as keywords or subject terms.
Arguments
- net_groups
A list containing a
network
component of classtbl_graph
, where each node has at least two attributes:group
andDE
.- n_terms
Integer. The number of top terms to return per group, both by frequency and by TF-IDF. Default is 15.
- min_freq
Integer. Minimum frequency a term must have in a group to be considered. Default is 2.
- sep
Character. Separator used in the
DE
field to split multiple terms. Default is";"
.