Learn R Programming

wsyn (version 1.0.4)

tts_methods: Basic methods for the tts class

Description

Set, get, summary, and print methods for the tts class.

Usage

# 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)

Arguments

object, x, obj

An object of class tts

...

Not currently used. Included for argument consistency with existing generics.

newval

A new value, for the set_* methods

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.

See Also

tts

Examples

Run this code
# 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