as.ts_table.Rd 669 Bytes
Newer Older
Enrico Schumann's avatar
Enrico Schumann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
\name{as.ts_table}
\alias{as.ts_table}
\alias{as.ts_table.zoo}
\title{
  Coerce To ts_table
}
\description{
  Coerce objects to \code{ts_table}
}
\usage{
as.ts_table(x, ...)

\method{as.ts_table}{zoo}(x, columns, \dots)
}
\arguments{
  \item{x}{
    object to be coerced to ts_table
}
  \item{columns}{
    character
}
  \item{\dots}{
    arguments to be passed to other methods
}
}
\details{
  A generic function.
}
\value{
  A ts_table.
}
\author{
  Enrico Schumann
}
\seealso{
  \code{\link{read_ts_tables}}
}
\examples{
require("zoo")
as.ts_table(zoo(1:5, Sys.Date()-5:1),  ## note that the "columns"
            columns = "value")         ## must be specified


}