| time | R Documentation |
Get and set the vector of observation times.
## S4 method for signature 'pomp'
time(x, t0 = FALSE, ...)
## S4 replacement method for signature 'pomp'
time(object, t0 = FALSE, ...) <- value
## S4 method for signature 'listie'
time(x, t0 = FALSE, ...)
x |
a ‘pomp’ object |
t0 |
logical; should the zero time be included? |
... |
ignored or passed to the more primitive function |
object |
a ‘pomp’ object |
value |
numeric vector; the new vector of times |
time(object) returns the vector of observation times.
time(object,t0=TRUE) returns the vector of observation
times with the zero-time t0 prepended.
time(object) <- value replaces the observation times slot (times) of object with value.
time(object,t0=TRUE) <- value has the same effect, but the first element in value is taken to be the initial time.
The second and subsequent elements of value are taken to be the observation times.
Those data and states (if they exist) corresponding to the new times are retained.
Other extraction methods:
coef(),
cond_logLik(),
covmat(),
eff_sample_size(),
filter_mean(),
filter_traj(),
forecast(),
logLik,
obs(),
pred_mean(),
pred_var(),
saved_states(),
spy(),
states(),
summary(),
timezero(),
traces()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.