tts_methods {wsyn} | R Documentation |
Basic methods for the tts
class
Description
Set, get, summary, and print methods for the tts
class.
Usage
## S3 method for class 'tts'
summary(object, ...)
## S3 method for class 'tts'
print(x, ...)
## S3 method for class 'tts'
set_times(obj, newval)
## S3 method for class 'tts'
set_timescales(obj, newval)
## S3 method for class 'tts'
set_values(obj, newval)
## S3 method for class 'tts'
get_times(obj)
## S3 method for class 'tts'
get_timescales(obj)
## S3 method for class 'tts'
get_values(obj)
Arguments
object , x , obj |
An object of class |
... |
Not currently used. Included for argument consistency with existing generics. |
newval |
A new value, for the |
Value
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.
Author(s)
Daniel Reuman, reuman@ku.edu
See Also
Examples
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)
[Package wsyn version 1.0.4 Index]