Learn R Programming

kpodclustr (version 1.1)

initialImpute: Function for initial imputation for k-means

Description

initialImpute Initial imputation for k-means

Usage

initialImpute(X)

Arguments

X

Data matrix containing missing entries whose rows are observations and columns are features

Value

A data matrix containing no missing entries

Examples

Run this code
# NOT RUN {
p <- 2
n <- 100
k <- 3
sigma <- 0.25
missing <- 0.05
Data <- makeData(p,n,k,sigma,missing)
X <- Data$Missing
X_copy <- initialImpute(X)

# }

Run the code above in your browser using DataLab