Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tts_methods

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

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)

wsyn

Wavelet Approaches to Studies of Synchrony in Ecology and Other Fields

v1.0.3
GPL-3
Authors
Daniel C. Reuman [aut, cre], Thomas L. Anderson [aut], Jonathan A. Walter [aut], Lei Zhao [aut], Lawrence W. Sheppard [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.