Skip to contents

seriesData (removed) extracts data slot from a 'timeSeries'. use as.matrix instead.

Usage

removeNA(x, ...)
substituteNA(x, type = c("zeros", "mean", "median"), ...)
interpNA(x, method = c("linear", "before", "after"), ...)

Arguments

x

a numeric matrix, or any other object which can be transformed into a matrix through x = as.matrix(x, ...). If x is a vector, it will be transformed into a one-dimensional matrix.

method

for interpNA, how to interpolate the matrix column by column, see Section ‘Details’.

type

Three alternative methods are provided to remove NAs from the data: type="zeros" replaces the missing values with zeros, type="mean" replaces the missing values with the column mean, type="median" replaces the missing values with the column median.

...

arguments to be passed to the function as.matrix.