Learn R Programming

wsyn (version 1.0.4)

wpmf_methods: Basic methods for the wpmf class

Description

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

Usage

# S3 method for wpmf
summary(object, ...)

# S3 method for wpmf print(x, ...)

# S3 method for wpmf set_times(obj, newval)

# S3 method for wpmf set_timescales(obj, newval)

# S3 method for wpmf set_values(obj, newval)

# S3 method for wpmf set_dat(obj, newval)

# S3 method for wpmf set_wtopt(obj, newval)

# S3 method for wpmf set_signif(obj, newval)

# S3 method for wpmf get_times(obj)

# S3 method for wpmf get_timescales(obj)

# S3 method for wpmf get_values(obj)

# S3 method for wpmf get_dat(obj)

# S3 method for wpmf get_wtopt(obj)

# S3 method for wpmf get_signif(obj)

Arguments

object, x, obj

An object of class wpmf

...

Not currently used. Included for argument consistency with existing generics.

newval

A new value, for the set_* methods

Value

summary.wpmf produces a summary of a wpmf object. A print.wpmf method is also available. For wpmf objects, set_* and get_* methods are available for all slots, i.e., * equal to times, timescales, wtopt, values, dat, and signif. The set_* methods just throw an error, to prevent breaking the consistency between the slots of a wpmf object.

See Also

wpmf

Examples

Run this code
# NOT RUN {
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<-wpmf(dat,times)
get_times(h)
summary(h)
print(h)

# }

Run the code above in your browser using DataLab