tts_methods: Basic methods for the 'tts' class

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## 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 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.

Author(s)

Daniel Reuman, reuman@ku.edu

See Also

tts

Examples

1
2
3
4
5
6
7
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)

wsyn documentation built on June 19, 2021, 1:07 a.m.