This function allows you to input a data frame of elements and associated labels and clusters the elements based on whether they share labels with other elements. Returns a data frame of the supplied element IDs and assigned cluster IDs.
1 | cluster_by_labels(data, elements, labels, return_labels = TRUE)
|
data |
Data frame of data elements and associated labels. |
elements |
Column name for element id. |
labels |
Column name for labels. |
return_labels |
Return label columns for elements and clusters. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.