impute_MissingData: Impute missing Values in Elution Profile Matrix

View source: R/impute_MissingData.R

impute_MissingDataR Documentation

Impute missing Values in Elution Profile Matrix

Description

This function imputes missing values in protein elution profile matrix via average of adjacent rows. This function is not applicable for missing values present in the first or last column.

Usage

impute_MissingData(x)

Arguments

x

A data matrix with rows including proteins and fractions along the columns, while some fractions may contain missing values.

Details

impute_MissingData

Value

Imputed matrix.

Author(s)

Matineh Rahmatbakhsh, matinerb.94@gmail.com

Examples

# Load the co-elution data
data("exampleData")
# Replace the values with NAs in the 10th column
exampleData[, 10] <- NA
# Impute missing value
datOut <- impute_MissingData(exampleData)

MACP documentation built on March 7, 2023, 7:42 p.m.