is_observed | R Documentation |
This function checks if the object is of class signal
and observed
.
is_observed(x)
x |
Input object to be checked |
Logical as to whether or not the input object inherits the "signal" and "observed" classes.
hosp <- read.csv(system.file("extdata/observed/hdgov_hosp_weekly.csv", package = "rplanes"))
hosp$date <- as.Date(hosp$date, format = "%Y-%m-%d")
sig <- to_signal(hosp, outcome = "flu.admits", type = "observed", resolution = "weeks")
is_observed(sig)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.