Learn R Programming

tframe (version 2015.12-1.1)

checktframeConsistent: Check for a Consistent tframe

Description

Check if tframe and a time series are consistent with one another.

Usage

checktframeConsistent(tf, x)
    # S3 method for default
checktframeConsistent(tf, x)

Arguments

tf

A tframe)

x

An object)

Value

A logical scalar.

Details

Check if the number of Tobs in the tframe corresponds to the number of observations in the time series.

See Also

is.tframe Tobs

Examples

Run this code
# NOT RUN {
    z <- ts(rnorm(100), start=c(1982,1), frequency=12)
    checktframeConsistent(tframe(z), rnorm(100))
# }

Run the code above in your browser using DataLab