add_cluster | R Documentation |
Add the clusterization results to the full data
add_cluster(data, cluster_res, id, name_to = paste0(id, "Cluster"))
data |
data.frame with the full data to wich the clusterized column will be added. |
cluster_res |
export of the 'surv_cluster' function, usually with only one covariate. |
id |
name of the unclusterized column, used in the join. |
name_to |
name of the clusterized column. |
a data.frame with the same columns as the input, plus the cluster column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.