Learn R Programming

xseq (version 0.2.1)

ImputeKnn: Impute missing values (NAs) using K-nearest neighbour averaging

Description

Impute missing values (NAs) using K-nearest neighbour averaging

Usage

ImputeKnn(X, ratio = 0.5, ...)

Arguments

X
A matrix of real values where each row corresponds to a patient and each column is a gene.
ratio
The rows (columns) with more than (default 50%) of missing values are removed
...
Arguments to be passed to impute.knn

Value

A matrix without NAs

Examples

Run this code
data(expr)
expr.norm = ImputeKnn(expr)

Run the code above in your browser using DataLab