Description Usage Arguments Details Value See Also Examples
dataSlice
is a subsetting method for objects of class idframe
. It
extracts the subset of the object data
observed between indices start
and end
. If a frequency is specified, the series is then re-sampled at the
new frequency.
1 |
data |
an object of class |
start |
the start index |
end |
the end index |
freq |
fraction of the original frequency at which the series to be sampled. |
The dataSlice function extends the window
function for idframe objects
an idframe object
1 2 3 4 5 | data(cstr)
cstrsub <- dataSlice(cstr,start=200,end=400) # extract between indices 200 and 400
cstrTrain <- dataSlice(cstr,end=4500) # extract upto index 4500
cstrTest <- dataSlice(cstr,start=6501) # extract from index 6501 till the end
cstr_new <- dataSlice(cstr,freq=0.5) # resample data at half the original frequency
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.