Subset of a Serie

Description

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

Usage

1
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

1
2
s <- Serie(rnorm(12), Monthly, Date(2015))
ss <- Ssub(s, Date(2015,3), Date(2015,10))