08.12.2012 Views

Package 'zoo' - CRAN

Package 'zoo' - CRAN

Package 'zoo' - CRAN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 coredata<br />

Arguments<br />

Details<br />

Value<br />

x an object,<br />

... further arguments passed to zoo when the return object is created.<br />

as.zoo currently has a default method and methods for ts, its, fts, irts, mcmc, tis, xts objects<br />

(and zoo objects themselves).<br />

Methods for coercing objects of class "zoo" to other classes currently include: as.ts, as.matrix,<br />

as.vector, as.data.frame, as.list (the latter also being available for "ts" objects).<br />

See Also<br />

In the conversion between zoo and ts, the zooreg class is always used.<br />

as.zoo returns a zoo object.<br />

zoo, zooreg, ts, its, irts, tis, fts, mcmc, xts.<br />

Examples<br />

## coercion to zoo:<br />

## default method<br />

as.zoo(rnorm(5))<br />

## method for "ts" objects<br />

as.zoo(ts(rnorm(5), start = 1981, freq = 12))<br />

## coercion from zoo:<br />

x.date

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!