as.timedData {smfsb} | R Documentation |
Convert a time series object to a timed data matrix
Description
This function converts a time series object to a timed data matrix,
similar to that produced by simTimes
. The main purpose is
for passing data to the function pfMLLik
, which expects
data encoded in this format.
Usage
as.timedData(timeseries)
Arguments
timeseries |
An R timeseries object, such as produced by the functions |
Value
An R matrix object with row names corresponding to observation times, similar to that produced by simTimes
.
See Also
Examples
truth=simTs(c(x1=50,x2=100),0,20,2,stepLVc)
simData=truth+rnorm(prod(dim(truth)),0,5)
timedData=as.timedData(simData)
print(timedData)
[Package smfsb version 1.5 Index]