powered by
Functions to check if an object is of the specified class
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)
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)
TRUE if this is the specified class and FALSE otherwise.
TRUE
FALSE
The object to check.
Ivan Svetunkov, ivan@svetunkov.com
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.smooth()
is.msarima() tests if the object was produced by the msarima function;
is.msarima()
is.smoothC() tests if the object was produced by a combination function (currently applies only to smoothCombine);
is.smoothC()
is.oes() tests if the object was produced by oes function;
is.oes()
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.sim()
is.smooth.forecast() checks if the forecast was produced from a smooth function using forecast() function.
is.smooth.forecast()
is.adam() tests if the object was produced by a adam function
is.adam()
is.adam.sim() tests if the object was produced by sim.adam() function (not implemented yet);
is.adam.sim()
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