tts
classSet, get, summary, and print methods for the tts
class.
# S3 method for tts
summary(object, ...)# S3 method for tts
print(x, ...)
# S3 method for tts
set_times(obj, newval)
# S3 method for tts
set_timescales(obj, newval)
# S3 method for tts
set_values(obj, newval)
# S3 method for tts
get_times(obj)
# S3 method for tts
get_timescales(obj)
# S3 method for tts
get_values(obj)
An object of class tts
Not currently used. Included for argument consistency with existing generics.
A new value, for the set_*
methods
summary.tts
produces a summary of a tts
object.
A print.tts
method is also available. For tts
objects,
set_*
and get_*
methods are available for all slots,
i.e., *
equal to times
, timescales
, and
values
. The set_*
methods just throw an error. Although
class tts
is flexible enough that setting of individual slots
could have been allowed, because wt
and other classes are
based on it and because individual slots of those classes should not
be changed, for consistency the same is forced for the tts
class.
# NOT RUN {
times<-1:10
timescales<-1/c(1:10)
values<-matrix(1,length(times),length(timescales))
h<-tts(times,timescales,values)
get_times(h)
summary(h)
print(h)
# }
Run the code above in your browser using DataLab