check_replace_dups {ClustImpute} | R Documentation |
Check and replace duplicate (centroid) rows
Description
Internal function of ClustImpute: check new centroids for duplicate rows and replace with random draws in this case.
Usage
check_replace_dups(centroids, X, seed)
Arguments
centroids |
Matrix of centroids |
X |
Underlying data matrix (without missings) |
seed |
Seed used for random sampling |
Value
Returns centroids where duplicate rows are replaced by random draws
[Package ClustImpute version 0.2.4 Index]