Learn R Programming

tsvr (version 1.0.2)

tsvreq_methods: Basic methods for the tsvreq class

Description

Set, get, summary, print and plot methods for the tsvreq class.

Usage

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

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

# S3 method for tsvreq plot(x, filename = NA, ...)

# S3 method for tsvreq set_ts(obj, newval)

# S3 method for tsvreq set_com(obj, newval)

# S3 method for tsvreq set_comnull(obj, newval)

# S3 method for tsvreq set_tsvr(obj, newval)

# S3 method for tsvreq set_wts(obj, newval)

# S3 method for tsvreq get_ts(obj)

# S3 method for tsvreq get_com(obj)

# S3 method for tsvreq get_comnull(obj)

# S3 method for tsvreq get_tsvr(obj)

# S3 method for tsvreq get_wts(obj)

Arguments

object, x, obj

An object of class tsvreq

...

Passed to plot. Not currently used for other methods, included there only for argument consistency with existing generics.

filename

A filename, no extension, could have a path. Used for saving a plot as a pdf. The default value NA causes the default plotting device to be used.

newval

A new value, for the set_* methods

Value

summary.tsvreq produces a summary of a tsvreq object. Methods print.tsvreq and plot.tsvreq are also available. For tsvreq objects, set_* and get_* methods are available for all slots (see the documentation for tsvreq for a list). The set_* methods just throw an error, to prevent breaking the consistency between the slots of a tsvreq object.

See Also

tsvreq

Examples

Run this code
# NOT RUN {
res<-tsvreq(ts=1:10,com=2*c(1:10),comnull=1:10,tsvr=rep(2,10),wts=rep(3,10))
get_ts(res)
print(res)
summary(res)
plot(res)
 
# }

Run the code above in your browser using DataLab