powered by
Functions to check if an object is of the specified class
is.smooth(x)is.vsmooth(x)is.smoothC(x)is.msarima(x)is.iss(x)is.oes(x)is.oesg(x)is.viss(x)is.smooth.sim(x)is.vsmooth.sim(x)is.smooth.forecast(x)is.msdecompose(x)is.msdecompose.forecast(x)
is.vsmooth(x)
is.smoothC(x)
is.msarima(x)
is.iss(x)
is.oes(x)
is.oesg(x)
is.viss(x)
is.smooth.sim(x)
is.vsmooth.sim(x)
is.smooth.forecast(x)
is.msdecompose(x)
is.msdecompose.forecast(x)
The object to check.
TRUE if this is the specified class and FALSE otherwise.
TRUE
FALSE
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.vsmooth() tests if the object was produced by a vector model (e.g. ves);
is.vsmooth()
is.oes() tests if the object was produced by oes function;
is.oes()
is.viss() tests if the object was produced by viss function;
is.viss()
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.vsmooth.sim() tests if the object was produced by the functions sim.ves;
is.vsmooth.sim()
is.smooth.forecast() checks if the forecast was produced from a smooth function using forecast() function.
is.smooth.forecast()
# 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