Imputes numeric values for time-points with an NA by computing the linear path between missing points

imputeMissingData(data)

Arguments

data

a data.frame of numeric gene expression over time (row = genes x col = ZT times) with missing values.

Value

a imputed data.frame of numeric gene expression over time (row = genes x col = ZT times).

See also

na_interpolation for imputation procedure.

Examples

a <- c(10, 12, 14, NA, 18) b <- c(1, 2, NA, NA, 5) data <- t(data.frame(a, b)) imputeMissingData(data)
#> Registered S3 method overwritten by 'quantmod': #> method from #> as.zoo.data.frame zoo
#> [,1] [,2] [,3] [,4] [,5] #> a 10 12 14 16 18 #> b 1 2 3 4 5