Learn R Programming

tolBasis (version 1.0)

as.ts: Time-Series (ts) Compatibility

Description

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

Usage

"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

Run this code
s1 <- Serie(rnorm(12), Monthly, as.Date(ymd("2001-01-01")))
ts1 <- as.ts(s1)

Run the code above in your browser using DataLab