Learn R Programming

CausalImpact (version 1.2.7)

as.CausalImpact: Coercion to a CausalImpact object

Description

Method for coercing objects to class CausalImpact.

This function serves as a template to implement S3 methods for coercing other objects to CausalImpact objects in other packages. The function itself just dispatches a call to the appropriate S3 method.

Usage

as.CausalImpact(x, ...)

Arguments

x

Any R object that should be coerced to a CausalImpact object.

...

Optional additional arguments (not currently used).

Author

Kay H. Brodersen kbrodersen@google.com