Description Usage Arguments Value Author(s) Examples
View source: R/apply_kmeans_mappings.R
Applies mapped kmeans features by calculating the distance to center per observation
1 | apply.kmeans.mappings(data, kmeans.mappings, progress = TRUE)
|
data |
[required | data.frame] Dataset containing features to apply mappings to |
kmeans.mappings |
[required | list] Output from function map.kmeans.features |
progress |
[optional | logical | default=TRUE] Display a progress bar |
Data frame with newly added features and original features
Xander Horn
1 2 | km <- map.kmeans.features(data = iris, x = setdiff(names(iris), "Species"))
new_iris <- apply.kmeans.mappings(data = iris, kmeans.mappings = km)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.