setget_methods: Set and get methods for classes in the 'tsvr' package

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Set and get methods for classes in the tsvr package. There are methods for each slot of each class, named set_* and get_* for * the slot name. Below are listed function specs for the generics and the default methods.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set_ts(obj, newval)

## Default S3 method:
set_ts(obj, newval)

set_tsvr(obj, newval)

## Default S3 method:
set_tsvr(obj, newval)

set_wts(obj, newval)

## Default S3 method:
set_wts(obj, newval)

get_ts(obj)

## Default S3 method:
get_ts(obj)

get_tsvr(obj)

## Default S3 method:
get_tsvr(obj)

get_wts(obj)

## Default S3 method:
get_wts(obj)

set_com(obj, newval)

## Default S3 method:
set_com(obj, newval)

set_comnull(obj, newval)

## Default S3 method:
set_comnull(obj, newval)

set_vr(obj, newval)

## Default S3 method:
set_vr(obj, newval)

get_com(obj)

## Default S3 method:
get_com(obj)

get_comnull(obj)

## Default S3 method:
get_comnull(obj)

get_vr(obj)

## Default S3 method:
get_vr(obj)

Arguments

obj

An object of one of the classes defined in the package

newval

A newvalue of the slot in question, for the set_* methods

Details

There are methods for S3 classes defined in the package. See documentation for the generator functions for these classes (which in all cases have the same name as the class) for lists of slots for each class.

Value

set_* methods throw an error - setting of individual slots is not allowed, as it breaks consistency with the other slots. get_* just returns the value in question.

Author(s)

Daniel Reuman, reuman@ku.edu

See Also

vreq

Examples

1
2
res<-vreq(com=2,comnull=1,vr=2)
get_com(res)

reumandc/tsvr documentation built on Jan. 17, 2021, 10:32 p.m.