Learn R Programming

tsdb (version 1.1-0)

as.ts_table: Coerce to ts_table

Description

Coerce objects to ts_table

Usage

as.ts_table(x, ...)

# S3 method for zoo as.ts_table(x, columns, ...)

Value

a ts_table

Arguments

x

object to be coerced to ts_table

columns

character

...

arguments to be passed to other methods

Author

Enrico Schumann

Details

A generic function for coercing objects to class ts_table.

See Also

read_ts_tables

Examples

Run this code
library("zoo")
as.ts_table(zoo(1:5, Sys.Date()-5:1),  ## note that the "columns"
            columns = "value")         ## must be specified

Run the code above in your browser using DataLab