Description Usage Arguments Details Value Examples
View source: R/imputeMissingValues.R
Imputes all NA values in a traces object by interpolation.
1 | imputeMissingVals(traces, method = c("mean", "spline"))
|
traces |
Object of class traces. |
method |
Character string, which interpolation method to use. |
Unlike with standard imputation methods, missing values on the borders are linearly extrapolated from the neighboring 2 values. Any imputed value below 0 is set to 0.
Object of class traces with imputed NA values.
1 2 3 4 5 6 7 | tracesMiss <- findMissingValues(examplePeptideTraces)
tracesImp <- imputeMissingVals(tracesMiss)
View(tracesImp$traces)
# The imputed values can be visualised using the package 'daff'
require(daff)
render_diff(diff_data(examplePeptideTraces$traces, tracesImp$traces))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.