wrapper.impute.KNN {DAPAR} | R 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')

[Package DAPAR version 1.24.8 Index]