as.ts: Time-Series (ts) Compatibility

Description Usage Arguments Value See Also Examples

Description

Converts a Serie object to a Time-Series (ts) one.

Usage

1
2
## S3 method for class 'Serie'
as.ts(x, ...)

Arguments

x

a Serie object

...

further arguments (unused with Serie objects)

Value

a Time-Series (ts) object

See Also

See also ts

Examples

1
2
s1 <- Serie(rnorm(12), Monthly, as.Date(ymd("2001-01-01")))
ts1 <- as.ts(s1)

Example output

Loading required package: lubridate

Attaching package: 'lubridate'

The following object is masked from 'package:base':

    date

tolBasis documentation built on May 2, 2019, 3:44 a.m.