Learn R Programming

smooth (version 4.1.0)

is.smooth: Smooth classes checkers

Description

Functions to check if an object is of the specified class

Functions to check if an object is of the specified class

Usage

is.smooth(x)

is.smoothC(x)

is.msarima(x)

is.oes(x)

is.oesg(x)

is.smooth.sim(x)

is.smooth.forecast(x)

is.adam(x)

is.adam.sim(x)

is.msdecompose(x)

is.msdecompose.forecast(x)

Value

TRUE if this is the specified class and FALSE otherwise.

TRUE if this is the specified class and FALSE otherwise.

Arguments

x

The object to check.

Author

Ivan Svetunkov, ivan@svetunkov.ru

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.oes() tests if the object was produced by oes 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.smooth.forecast() checks if the forecast was produced from a smooth function using forecast() function.

The list of functions includes:

  • is.adam() tests if the object was produced by a adam function

  • is.adam.sim() tests if the object was produced by sim.adam() function (not implemented yet);

Examples

Run this code

ourModel <- msarima(rnorm(100,100,10))

is.smooth(ourModel)
is.msarima(ourModel)


ourModel <- adam(rnorm(100,100,10))
is.adam(ourModel)

Run the code above in your browser using DataLab