is_forecast | R Documentation |
This function checks if the object is of class signal
and forecast
.
is_forecast(x)
x |
Input object to be checked |
Logical as to whether or not the input object inherits the "signal" and "forecast" classes.
## get path to example forecast file
fp <- system.file("extdata/forecast/2022-10-31-SigSci-TSENS.csv", package = "rplanes")
ex_forecast <- read_forecast(fp)
sig <- to_signal(ex_forecast, outcome="flu.admits", type="forecast", horizon=4, resolution="weeks")
is_forecast(sig)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.