Learn R Programming

smooth (version 2.4.7)

is.smooth: Smooth classes checkers

Description

Functions to check if an object is of the specified class

Usage

is.smooth(x)

is.vsmooth(x)

is.smoothC(x)

is.msarima(x)

is.iss(x)

is.viss(x)

is.smooth.sim(x)

is.vsmooth.sim(x)

is.smooth.forecast(x)

Arguments

x

The object to check.

Value

TRUE if this is the specified class and FALSE otherwise.

Details

The list of functions includes:

  • is.smooth() tests if the object was produced by a smooth function (e.g. es / ces / ssarima / gum / sma / msarima);

  • is.msarima() tests if the object was produced by the msarima function;

  • is.smoothC() tests if the object was produced by a combination function (currently applies only to smoothCombine);

  • is.vsmooth() tests if the object was produced by a vector model (e.g. ves / gsi);

  • is.iss() tests if the object was produced by iss function;

  • is.viss() tests if the object was produced by viss function;

  • is.smooth.sim() tests if the object was produced by simulate functions (e.g. sim.es / sim.ces / sim.ssarima / sim.sma / sim.gum);

  • is.vsmooth.sim() tests if the object was produced by the functions sim.ves;

  • is.smooth.forecast() checks if the forecast was produced from a smooth function using forecast() function.

Examples

Run this code
# NOT RUN {
ourModel <- msarima(rnorm(100,100,10))

is.smooth(ourModel)
is.iss(ourModel)
is.msarima(ourModel)
is.vsmooth(ourModel)

# }

Run the code above in your browser using DataLab