refactor | R Documentation |
Refactor the levels of the chosen clusters.
refactor(object, ..., inheret_parameters = TRUE)
object |
A |
... |
< The name gives the name of the new clustering in the output. The value can be:
When a recording uses the name of an existing clustering, this new clustering will overwrite the existing one. |
inheret_parameters |
A logical. If |
A medic
object with relevant clusterings refactored.
clust <- medic(complications, id = id, atc = atc, k = 3:4)
# Refactor one clustering
refactor(
clust,
`cluster_1_k=4` = dplyr::recode(`cluster_1_k=4`, IV = "III")
)
# Refactor all clusterings
refactor(
clust,
dplyr::across(
dplyr::everything(),
~dplyr::recode(., IV = "III")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.