The non-missing cases indicate the training set, and missing cases indicate the test set.
See also
Other imputation functions:
impute_missing()
Examples
data(hgsc)
dat <- hgsc[1:100, 1:50]
x <- consensus_cluster(dat, nk = 4, reps = 4, algorithms = c("km", "hc",
"diana"), progress = FALSE)
x <- apply(x, 2:4, impute_knn, data = dat, seed = 1)