| wt_methods | R Documentation |
wt classSet, get, summary, and print methods for the wt class.
## S3 method for class 'wt' summary(object, ...) ## S3 method for class 'wt' print(x, ...) ## S3 method for class 'wt' set_times(obj, newval) ## S3 method for class 'wt' set_timescales(obj, newval) ## S3 method for class 'wt' set_values(obj, newval) ## S3 method for class 'wt' set_dat(obj, newval) ## S3 method for class 'wt' set_wtopt(obj, newval) ## S3 method for class 'wt' get_times(obj) ## S3 method for class 'wt' get_timescales(obj) ## S3 method for class 'wt' get_values(obj) ## S3 method for class 'wt' get_dat(obj) ## S3 method for class 'wt' get_wtopt(obj)
object, x, obj |
An object of class |
... |
Not currently used. Included for argument consistency with existing generics. |
newval |
A new value, for the |
summary.wt produces a summary of a wt object.
A print.wt method is also available. For wt objects,
set_* and get_* methods are available for all slots,
i.e., * equal to times, timescales, wtopt,
values, and dat. The set_* methods just throw an
error, to prevent breaking the consistency between the slots of a
wt object.
Daniel Reuman, reuman@ku.edu
wt
time1<-1:100 time2<-101:200 ts1p1<-sin(2*pi*time1/15) ts1p2<-0*time1 ts2p1<-0*time2 ts2p2<-sin(2*pi*time2/8) ts1<-ts1p1+ts1p2 ts2<-ts2p1+ts2p2 ts<-c(ts1,ts2) ra<-rnorm(200,mean=0,sd=0.5) t.series<-ts+ra t.series<-t.series-mean(t.series) times<-c(time1,time2) h<-wt(t.series, times) get_times(h) summary(h) print(h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.