View source: R/data_functions.R
Diff.Col | R Documentation |
This function takes the difference of specified columns in a ts object. It should not be used for taking differences of all variables. Only a subset of variables can be used. Other variables are bind to the differenced data at the end.
Diff.Col(Data, Diff.ColNames)
Data |
ts object. |
Diff.ColNames |
character. Name of the columns to be differenced. |
A first difference taken ts object with a user selected name.
x <- data.frame(V1 = c(1:10), V2 = c(1:10), V3 = c(1:10))
x.ts <- ts(x)
data.diff <- Diff.Col(Data = x.ts, Diff.ColNames = c("V1", "V3"))
data.diff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.