Description Usage Arguments Examples
View source: R/prep_clusters.R
Prepare a dataframe for clustering. Specify a vector of predictors, scale some or all of them, and specify a response variable. Return a list with the original dataframe (df_for_clustering), the predictors (preds), and the outcome variables (outcome).
1 | prep_clusters(df, preds, to_scale, resp)
|
df |
A dataframe containing data to cluster on. |
preds |
A vector of predictor variables. |
to_scale |
A subset of those predictors that should be scaled. |
resp |
The response variable. |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.