wrapper.impute.KNN: KNN missing values imputation from a 'MSnSet' object

View source: R/missingValuesImputation_ProteinLevel.R

wrapper.impute.KNNR Documentation

KNN missing values imputation from a MSnSet object

Description

Can impute only POV missing values

Usage

wrapper.impute.KNN(obj = NULL, K, na.type)

Arguments

obj

An object of class MSnSet.

K

the number of neighbors.

na.type

A string which indicates the type of missing values to impute. Available values are: 'missing POV'.

Details

This method is a wrapper for objects of class MSnSet and imputes missing values with a fixed value. This function imputes the missing values condition by condition.

Value

The object obj which has been imputed

Author(s)

Samuel Wieczorek

Examples

utils::data(Exp1_R25_pept, package='DAPARdata')
obj.imp.pov <- wrapper.impute.KNN(obj = Exp1_R25_pept[1:10], K=3, 
na.type = 'missing POV')


samWieczorek/DAPAR documentation built on May 6, 2022, 5:30 p.m.