enrich {tame} | R Documentation |
Enrich Clustering Parameter
Description
Enrich the parameter information in a clustering with user-defined data.
Usage
enrich(object, additional_data = NULL, by = NULL)
Arguments
object |
A |
additional_data |
A data frame with additional data that may be
(left-)joined onto the |
by |
A character vector of variables to join by. This variables is
passed to the If To join by different variables on To join by multiple variables, use a vector with length > 1. For example,
For example, |
Details
The enrich()
function is a joining function used for enriching the
clustering characteristics with user-defined data. This function is used in
all of the investigative functions with a additional_data
statement such as
frequencies()
and amounts()
.
Value
An object of class medic.
Examples
clust <- medic(
complications,
id = id,
atc = atc,
timing = first_trimester:third_trimester,
k = 3:5
)
new_parameters <- data.frame(k = 3:5, size = c("small", "small", "large"))
enrich(clust, new_parameters)