.sharedSubstr | R Documentation |
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.
.sharedSubstr(x, id)
x |
Character vector of words |
id |
Vector of group ids |
# "fox" occurs in groups 1 and 3, and "box" occurs in groups 3 and 4,
# so these groups are grouped together
AbNames:::.sharedSubstr(c("fox", "cat", "fox", "in", "box", "box"),
c(1, 2, 3, 3, 3, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.