check_replace_dups: Check and replace duplicate (centroid) rows

Description Usage Arguments Value

View source: R/ClustImpute.R

Description

Internal function of ClustImpute: check new centroids for duplicate rows and replace with random draws in this case.

Usage

1
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


ClustImpute documentation built on May 31, 2021, 9:06 a.m.