check_replace_dups: 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
X
Underlying data matrix (without missings)
seed
Seed used for random sampling
Value
Returns centroids where duplicate rows are replaced by random draws