Learn R Programming

GNAR (version 1.0)

nobs.GNARfit: Function to return the number of observations input to GNARfit objects

Description

nobs returns the number of obervations (T) of the input multivariate time series in the GNARfit function.

Usage

# S3 method for GNARfit
nobs(object,...)

Arguments

object

the output of a GNARfit or GNARpredict call

...

additional arguments, unused here.

Value

An integer specifying the number of rows in the input vts to the GNARfit function.

Details

S3 method for class "GNARfit".

Examples

Run this code
# NOT RUN {
#observations of example fiveVTS
nobs(GNARfit())
#check this is the same as number of rows in fiveVTS
all.equal(nobs(GNARfit()), nrow(fiveVTS))
# }

Run the code above in your browser using DataLab