seriesData (removed) extracts data slot from a 'timeSeries'.
use as.matrix instead. |
|
removeNA(x, ...)
substituteNA(x, type = c("zeros", "mean", "median"), ...)
interpNA(x, method = c("linear", "before", "after"), ...)
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.
for interpNA
, how to interpolate the matrix column
by column, see Section ‘Details’.
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
.