Skip to content
Prev 82643 / 398503 Next

Generation of missiing values in a time serie...

Your variable mat is not a matrix; its a data frame.  Check it with:

   class(mat)

Here is an example:

x <- cbind(A = 1:4, B = 5:8)
tt <- c(1, 3:4, 6)

library(zoo)
x.zoo <- zoo(x, tt)
x.ts <- as.ts(x.zoo)
On 12/13/05, Alvaro Saurin <saurin at dcs.gla.ac.uk> wrote: