ts-methods
Methods for Time Series ObjectsMethods for objects of class "ts"
, typically the result of ts
.
## S3 method for class 'ts' diff(x, lag = 1, differences = 1, ...) ## S3 method for class 'ts' na.omit(object, ...)
x | an object of class |
lag | an integer indicating which lag to use. |
differences | an integer indicating the order of the difference. |
object | a univariate or multivariate time series. |
... | further arguments to be passed to or from methods. |
The na.omit
method omits initial and final segments with missing values in one or more of the series. ‘Internal’ missing values will lead to failure.
For the na.omit
method, a time series without missing values. The class of object
will be preserved.
diff
; na.omit
, na.fail
, na.contiguous
.
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.