wmf_methods {wsyn} | R Documentation |
Basic methods for the wmf
class
Description
Set, get, summary, and print methods for the wmf
class.
Usage
## 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)
Arguments
object , x , obj |
An object of class |
... |
Not currently used. Included for argument consistency with existing generics. |
newval |
A new value, for the |
Value
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.
Author(s)
Daniel Reuman, reuman@ku.edu
See Also
Examples
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)
[Package wsyn version 1.0.4 Index]