search for: treg

Displaying 1 result from an estimated 1 matches for "treg".

Did you mean: reg
2010 May 07
0
timeSeries and optional S4 slots?
Question on timeSeries and S4 classes: Consider the following: library(timeSeries) data <- rnorm(5) treg <- ts(data, frequency=4) t1 <- timeSeries(data, as.Date('2010-04-15') + 1:5) t2 <- as.timeSeries(treg) Now both t1 and t2 are timeSeries objects, yet t2 at ts is a valid slot, while t1 at ts is not. Thus the ts slot is optional. Sorry if I am misunderstanding the way S4 classes...