Learn R Programming

tolBasis (version 1.0)

as.xts: eXtensible Time-Series (xts) Compatibility

Description

Converts a Serie object to an eXtensible Time-Series (xts) one.

Usage

"as.xts"(x, ...)

Arguments

x
a Serie object
...
further arguments (unused with Serie objects)

Value

an eXtensible Time-Series (xts) object

See Also

See also xts

Examples

Run this code
## Not run: 
# library(xts)
# s1 <- Serie(rnorm(12), Monthly, as.Date(ymd("2001-01-01")))
# xts1 <- as.xts(s1)
# ## End(Not run)

Run the code above in your browser using DataLab