impute_neighbors: Impute single missing values

Description Usage Arguments Value Examples

View source: R/impute_neighbors.R

Description

Impute single missing values within a chromatogram profile as the average of their neighbors.

Usage

1
impute_neighbors(chromatogram)

Arguments

chromatogram

a numeric vector corresponding to the chromatogram trace

Value

the imputed chromatogram

Examples

1
2
3
data(scott)
chrom <- scott[16, ]
imputed <- impute_neighbors(chrom)

fosterlab/PrInCE documentation built on Dec. 13, 2020, 5:50 a.m.