Takes a vector of words and a corresponding vector of group ids and returns a numeric vector indicating groupings where members of a group share a word with at least one other member of the group.
Arguments
- qr_df
A query data.frame, e.g. created by makeQueryTable
- x
Name of column to check for shared substrings (character(1), default: "value")
- id
Name of ID column uniquely identifying rows (character(1), default: "ID")
- new_col
Name of column to be added to qr_df (character(1), default: "AB_group")