as.ts_table: Coerce to ts_table

View source: R/functions.R

as.ts_tableR Documentation

Coerce to ts_table

Description

Coerce objects to ts_table

Usage

as.ts_table(x, ...)

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

Arguments

x

object to be coerced to ts_table

columns

character

...

arguments to be passed to other methods

Details

A generic function for coercing objects to class ts_table.

Value

a ts_table

Author(s)

Enrico Schumann

See Also

read_ts_tables

Examples

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

tsdb documentation built on March 7, 2023, 7:31 p.m.

Related to as.ts_table in tsdb...