wrapper.impute.fixedValue {DAPAR} | R Documentation

## Missing values imputation from a `MSnSet` object

### Description

This method is a wrapper to objects of class `MSnSet` and imputes missing values with a fixed value.

### Usage

    wrapper.impute.fixedValue(obj, fixVal = 0, na.type)

### Arguments

`obj` | An object of class `MSnSet`.
`fixVal` | A float.
`na.type` | A string which indicates the type of missing values to impute. Available values are: 'NA' (for both POV and MEC), 'POV', 'MEC'.

### Value

The object `obj` which has been imputed

### Author(s)

Samuel Wieczorek

### Examples

    utils::data(Exp1_R25_pept, package='DAPARdata')
    obj <- Exp1_R25_pept[1:10,]
    obj.imp.pov <- wrapper.impute.fixedValue(obj, 0.001, na.type = 'missing POV')
    obj.imp.mec <- wrapper.impute.fixedValue(obj, 0.001, na.type = 'missing MEC')
    obj.imp.na <- wrapper.impute.fixedValue(obj, 0.001, na.type = 'missing')

[Package DAPAR version 1.24.8 Index]