Basic methods for the wmf class
Set, get, summary, and print methods for the wmf
class.
## S3 method for class 'wmf' summary(object, ...) ## S3 method for class 'wmf' print(x, ...) ## S3 method for class 'wmf' set_times(obj, newval) ## S3 method for class 'wmf' set_timescales(obj, newval) ## S3 method for class 'wmf' set_values(obj, newval) ## S3 method for class 'wmf' set_dat(obj, newval) ## S3 method for class 'wmf' set_wtopt(obj, newval) ## S3 method for class 'wmf' get_times(obj) ## S3 method for class 'wmf' get_timescales(obj) ## S3 method for class 'wmf' get_values(obj) ## S3 method for class 'wmf' get_dat(obj) ## S3 method for class 'wmf' 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.wmf
produces a summary of a wmf
object.
A print.wmf
method is also available. For wmf
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
wmf
object.
Daniel Reuman, reuman@ku.edu
times<-1:30 #generate time steps #generate fake count data for 20 locations dat<-matrix(rpois(20*length(times),20),nrow=20,ncol=length(times)) dat<-cleandat(dat=dat,times=times,clev=2)$cdat #detrend and demean h<-wmf(dat,times) get_times(h) summary(h) print(h)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.