Learn R Programming

MACP (version 0.1.0)

impute_MissingData: 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)

Value

Imputed matrix.

Arguments

x

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

Author

Matineh Rahmatbakhsh, matinerb.94@gmail.com

Details

impute_MissingData

Examples

Run this code
# 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)

Run the code above in your browser using DataLab