lilikoi.preproc_knn: An imputation function.

Description Usage Arguments Value Examples

View source: R/lilikoi.preproc_knn.R

Description

This function is used to preprocess data via knn imputation.

Usage

1
lilikoi.preproc_knn(inputdata = Metadata, method = c("knn"))

Arguments

inputdata

An expression data frame with samples in the rows, metabolites in the columns

method

The method to be used to process data, including

Value

A KNN imputed dataset with samples in the rows, metabolites in the columns.

Examples

1
2
3
4
5
dt <- lilikoi.Loaddata(file=system.file("extdata",
  "plasma_breast_cancer.csv", package = "lilikoi"))
Metadata <- dt$Metadata
dataSet <- dt$dataSet
lilikoi.preproc_knn(inputdata=Metadata, method="knn")

lilikoi documentation built on Jan. 15, 2021, 3:32 p.m.