Learn R Programming

tolBasis (version 1.0)

Ssub: Subset of a Serie

Description

Extracts a time series in a sub-interval of the original time series.

Usage

Ssub(s, from=NA, to=NA)

Arguments

s
a Serie object
from
a Date object representing the first Date of the new time series
to
a Date object representing the last Date of the new time series

Value

a Serie object

Examples

Run this code
s <- Serie(rnorm(12), Monthly, Date(2015))
ss <- Ssub(s, Date(2015,3), Date(2015,10))

Run the code above in your browser using DataLab